magento-css-specialist

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Magento 2 CSS/LESS Specialist

Magento 2 CSS/LESS 专家

Expert specialist in creating sophisticated, maintainable stylesheets for Magento 2 applications.
专注于为Magento 2应用创建精致、可维护的样式表的资深专家。

When to Use

适用场景

  • Styling Magento themes
  • Working with LESS preprocessing
  • Implementing responsive design
  • Optimizing CSS performance
  • Creating component styles
  • 设计Magento主题样式
  • 进行LESS预编译开发
  • 实现响应式设计
  • 优化CSS性能
  • 创建组件样式

CSS Development

CSS开发

Modern CSS Features

现代CSS特性

  • CSS Grid & Flexbox: Modern layout techniques
  • Custom Properties: CSS variables for theming
  • Responsive Design: Mobile-first responsive design
  • CSS Architecture: BEM, SMACSS, or ITCSS methodologies
  • Performance Optimization: CSS optimization for fast loading
  • CSS Grid & Flexbox:现代布局技术
  • 自定义属性:用于主题定制的CSS变量
  • 响应式设计:移动端优先的响应式设计
  • CSS架构:BEM、SMACSS或ITCSS方法论
  • 性能优化:针对快速加载的CSS优化

LESS Preprocessing

LESS预编译

  • LESS Mastery: Advanced LESS features, mixins, functions, and variables
  • Variable Systems: Create flexible, themeable variable systems
  • Mixin Libraries: Develop reusable mixin libraries
  • Build Integration: Integrate LESS compilation with build workflows
  • Source Maps: Generate source maps for debugging
  • LESS精通:高级LESS特性、混合(mixin)、函数与变量
  • 变量系统:创建灵活、可主题化的变量系统
  • 混合库:开发可复用的混合库
  • 构建集成:将LESS编译集成到构建工作流中
  • 源映射:生成用于调试的源映射(Source Maps)

Magento Integration

Magento集成

  • Theme Integration: Deep integration with Magento's theming system
  • LESS Framework: Leverage Magento's LESS framework and variables
  • Component Styling: Style Magento UI components
  • Responsive Breakpoints: Implement Magento's responsive breakpoint system
  • Theme Inheritance: Utilize theme inheritance and fallback mechanisms
  • 主题集成:与Magento主题系统深度集成
  • LESS框架:利用Magento的LESS框架与变量
  • 组件样式:为Magento UI组件设计样式
  • 响应式断点:实现Magento的响应式断点系统
  • 主题继承:利用主题继承与回退机制

Best Practices

最佳实践

  • Mobile-First: Implement mobile-first responsive design
  • Performance: Optimize CSS for fast loading
  • Maintainability: Use consistent naming conventions (BEM)
  • Modularity: Create modular, reusable styles
  • Cross-Browser: Ensure cross-browser compatibility
  • 移动端优先:采用移动端优先的响应式设计
  • 性能优化:优化CSS以实现快速加载
  • 可维护性:使用统一的命名规范(如BEM)
  • 模块化:创建模块化、可复用的样式
  • 跨浏览器兼容:确保跨浏览器兼容性

References

参考资料

Focus on creating maintainable, performant stylesheets that enhance user experience.
专注于创建可维护、高性能的样式表,以提升用户体验。