大厂web开发规范

本文梳理了Sass、Less、Stylus等CSS预处理器在各大公司的官方指南和社区推荐,探讨了Sass因其成熟度和广泛使用而成为主流的选择。同时,涵盖了HTML、CSS、JavaScript、TypeScript等前端技术的Google样式指南和Airbnb编码规范。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

公司对应链接CSS预处理器
谷歌

https://google.github.io/styleguide/

HTML&CSShttps://google.github.io/styleguide/htmlcssguide.html
JShttps://google.github.io/styleguide/jsguide.html
TShttp://google.github.io/styleguide/tsguide.html

Sass
腾讯

http://tgideas.qq.com/doc/frontend/spec/common/

Sass
京东https://guide.aotu.io/docs/Sass
Airbnb

https://github.com/airbnb/

JShttps://github.com/airbnb/javascript
CSS & Sasshttps://github.com/airbnb/css

Sass
百度

https://github.com/ecomfe/spec

HTMLhttps://github.com/ecomfe/spec/blob/master/html-style-guide.md
CSShttps://github.com/ecomfe/spec/blob/master/css-style-guide.md
JShttps://github.com/ecomfe/spec/blob/master/javascript-style-guide.md
Lesshttps://github.com/ecomfe/spec/blob/master/less-code-style.md

Less
阿里https://download.csdn.net/download/qq_44647809/20159865Sass
Vuehttps://cn.vuejs.org/v2/style-guide/index.html
JavaScript Standard Stylehttps://github.com/standard/standard
ES6http://es6.ruanyifeng.com/#docs/style
Bootstraphttps://codeguide.bootcss.com/
ESLinthttps://eslint.org/
Prettierhttps://prettier.io/

浅谈预处理器:浅谈 CSS 预处理器(二):如何快速上手?——CSS魔法

结论:

  • Sass相对Less 和 Stylus 更成熟,更受欢迎。
  • Sass(或它的变种 SCSS)。因为它相当成熟,用它的人也最多。
  • Stylus 与 Sass 和 Less 相比,Stylus 更像是一门编程语言,功能强大,语法灵活。Stylus 完全由 JavaScript 实现,对 Node.js 工具链极为友好。

引用上文的一张图:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

麦田里的POLO桔

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值