canonical/vanilla-framework
Fork: 183 Star: 927 (更新于 2025-11-04 12:00:37)
license: LGPL-3.0
Language: HTML .
From community websites to web applications, this CSS framework will help you achieve a consistent look and feel.
最后发布版本: v4.37.0 ( 2025-11-03 17:36:20)
Vanilla Framework
Vanilla Framework is an extensible CSS framework, built using Sass and is designed to be used either directly or by using themes to extend or supplement its patterns.
Table of contents
Using Vanilla
Hotlinking
You can link to the latest build to add directly into your markup like so, by replacing the x values with the version number you wish to link.
<link rel="stylesheet" href="https://assets.ubuntu.com/v1/vanilla_framework_version_x_x_x_min.css" />
Including Vanilla in your project via NPM or yarn
To get set up with Sass, add the sass and vanilla-framework packages to your project dependencies:
yarn add sass vanilla-framework
In the script that builds the CSS in your package.json, you should include the path to node_modules when looking for @imports. In this example, we have called the build script "build-css":
"build-css": "sass -w --load-path=node_modules src:dist --style=compressed"
Make a folder src/, create a file inside called style.scss and import Vanilla:
// Import the theme
@import 'vanilla-framework';
@include vanilla;
// Optionally override some settings
$color-brand: #ffffff;
// Add theme if applicable
If you don't want the whole framework, you can just @include specific parts - e.g. @include vf-b-forms.
Now run yarn build-css, which will convert any Sass files in the src/ folder to CSS in the dist/ folder.
To watch for changes in your Sass files, add the following script to your package.json
"watch-css": "yarn build-css && sass --load-path=node_modules -w src:dist --style=compressed"
Developing Vanilla
If you're looking to contribute to the Vanilla project itself, start here.
- Code of conduct
- Reporting bugs and issues
- Working with the Vanilla project
- Pull requests
- Releasing Vanilla
Community
Keep up to date with all new developments and upcoming changes with Vanilla.
- Read our latest blog posts at Ubuntu Blog
- Stay in touch with us on Matrix
Code licensed LGPLv3 by Canonical Ltd
With ♥ from Canonical
最近版本更新:(数据更新于 2025-11-04 12:00:21)
2025-11-03 17:36:20 v4.37.0
2025-10-30 13:48:23 v4.36.0
2025-10-17 21:20:27 v4.35.0
2025-10-17 13:30:05 v4.34.2
2025-09-19 21:54:17 v4.34.1
2025-09-18 16:12:35 v4.34.0
2025-09-08 13:06:45 v4.33.0
2025-09-01 14:01:43 v4.32.1
2025-08-29 13:22:38 v4.32.0
2025-08-26 16:41:32 v4.31.0
主题(topics):
css, css-framework, hack, hacktoberfest, html, npm, npm-package, package, sass, vanilla-framework, web-and-design
canonical/vanilla-framework同语言 HTML最近更新仓库
2025-12-06 02:46:37 web-platform-tests/wpt
2025-12-04 18:02:09 l4rm4nd/VoucherVault
2025-12-04 03:24:03 windmill-labs/windmill
2025-12-02 18:28:19 puikinsh/Adminator-admin-dashboard
2025-12-02 11:43:31 GavinTan/openvpn
2025-12-01 15:18:01 0xSaikat/findme
Vanilla Framework