You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will automatically install the latest Bootstrap version, so you don't need to do that manually.
31
31
32
-
## Import the styles into your CSS
32
+
## Create the Sass files
33
33
34
-
In your main.scss, you’ll import the source Sass files. Bootstrap is automatically loaded when you use the source files, so you don't need to worry about what Bootstrap files should you incorporate in your styles.
34
+
In your `scss` folder create two new files and name them:
35
+
36
+
- main.scss
37
+
- utility.scss
35
38
36
-
You have two options: include all of styles at once:
39
+
### Import the base styles and components
40
+
41
+
In your main.scss, you’ll import the source Sass files. Bootstrap is automatically loaded when you use the source files, so you don't need to worry about what Bootstrap files should you incorporate in your styles.
37
42
38
43
```scss
39
-
@import"@webpixels/css";
44
+
@import"@webpixels/css/base";
45
+
@import"@webpixels/css/forms";
46
+
47
+
// Load all the components
48
+
@import"@webpixels/css/components";
40
49
```
41
50
42
51
or pick the parts you need:
43
52
44
53
```scss
45
54
@import"@webpixels/css/base";
46
55
@import"@webpixels/css/forms";
47
-
@import"@webpixels/css/components";
56
+
57
+
// Load only the components you use
58
+
@import"@webpixels/css/components/alerts";
59
+
@import"@webpixels/css/components/avatars";
60
+
@import"@webpixels/css/components/buttons";
61
+
@import"@webpixels/css/components/navbars";
62
+
@import"@webpixels/css/components/cards";
63
+
```
64
+
65
+
[**Click here**](https://github.com/webpixels/css/blob/master/src/components/_index.scss) to see the complete list of available components.
66
+
67
+
### Import the utility classes
68
+
69
+
In Webpixels CSS you'll notice that we don't create custom styles, but rather make use of the utility classes. We are using the new Bootstrap Utility API to generate a comprehensive list of classes.
70
+
71
+
In your utility.scss you'll import all the utilities:
72
+
73
+
```scss
48
74
@import"@webpixels/css/utilities";
49
75
```
50
76
51
77
## Documentation
52
78
53
-
Check out our [documentation website](https://webpixels.io/docs).
79
+
Check out our [documentation website](https://webpixels.io/docs?ref=github).
80
+
81
+
## Integrations
82
+
83
+
If you want to see how it works, check out these functional examples of using Bootstrap and Webpixels CSS in common JS frameworks like Webpack, Parcel, Vite, and more!
84
+
85
+
[See all integrations](https://github.com/webpixels/css/tree/master/integrations)
54
86
55
-
## UI Components
87
+
## Detailed UI components library
56
88
57
-
Explore, copy, use and mix hundreds of carefully crafted components made just for Bootstrap. [Explore components](https://webpixels.io/components)
89
+
Explore, copy, use and mix hundreds of carefully crafted components made just for Bootstrap.
Get your new web design project started with these amazing templates, or copy and paste elements into your existing projects to give them a creative boost.
-[Mark Otto and the Team](https://github.com/twbs/bootstrap)
111
+
67
112
## License
68
113
69
-
Webpixels CSS is open-sourced software licensed under the [MIT license](https://github.com/webpixels/css/blob/master/LICENSE).
114
+
Made with ❤️ by [Webpixels](https://webpixels.io?ref=github). Webpixels CSS is open-sourced software licensed under the [MIT license](https://github.com/webpixels/css/blob/master/LICENSE).
0 commit comments