space150/spaceBase
关于
基于 Sass 构建的响应式 CSS 框架。
网站与应用开发可以做什么
- Object-oriented CSS
- Flexbox grid system
- Optimized for light speed
- Helper classes and mixins
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文spaceBase
spaceBase is a Sass-based responsive CSS framework.
Many CSS frameworks are meant to be included and left alone. But spaceBase is a boilerplate layer that can be built upon and tailored for your needs. It combines best practices for today’s responsive web with the core components we use on every project. Consider it the launch pad for your adventures into cyberspace.
spaceBase is the front-end starter files for any new web project. It sets up your Sass architecture and normalizes your CSS and native HTML elements. It provides the structural groundwork for your application.
Highlights
- Object-oriented CSS
- Flexbox grid system
- Optimized for light speed
- Helper classes and mixins
- Common UI components
- Cross-browser form controls
- Supports modern and legacy browsers including IE10+
Customizable Features
- Can be used within Next.js projects
- Compatible with any Dart Sass compiler
- Scalable, mobile-first grid - choose how robust you want it
- Base font size for mobile vs desktop
- Global variables for breakpoints, colors, fonts and more
Getting Started
$ npm install spacebaseor download the ZIP and copy its contents into your project folder.- Use your favorite Sass compiler to watch for changes and compile the files.
- Open
scss/_vars.scssto update your global variables. - Start building out your HTML. We've included
index.htmlandstyleguide.htmlto begin with. scss/base/is the core of spaceBase. Build your UI layer inscss/ui/- Reference the /scss/README.md for details on spaceBase architecture and use.
Your editor can be setup with EditorConfig so that code style standards are enforced automatically. See http://editorconfig.org/#download and install the plugin for your editor of choice.
The spaceBase structure
Read the CSS Architecture Overview for documentation of the SCSS files.
fonts/
scss/
base/
...
ui/
...
vendor/
...
_vars.scss
application.scss
styleguide.scss
stylesheets/
You can remove (if downloaded from Git):
*.ymlCHANGELOG.mdGemfile*package.jsonRakefiletest/
spaceBase for Next.js Development
- Recommended: set up a custom alias in your Next.js + Typescript configuration for a cleaner path. For example, the import statement could be
@use '@/app/styles/globals' as *;as long as you include the following in thecompilerOptionsobject of yourtsconfig.jsonfile:"paths": { "@/*": ["./src/*"] } - To silence deprecation warnings related to the "Legacy JS API", add this to your
next.config.jsfile:sassOptions: { silenceDeprecations: ['legacy-js-api'] }
Credits
License
spaceBase is free to use under the MIT License.
Copyright 2013-2026 space150
探索相关项目
加载中…