beercss 3.5.6 → 3.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -24
- package/dist/cdn/beer.css +4067 -0
- package/dist/cdn/beer.js +489 -0
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +2 -3
- package/dist/cdn/material-symbols-outlined.woff2 +0 -0
- package/dist/cdn/material-symbols-rounded.woff2 +0 -0
- package/dist/cdn/material-symbols-sharp.woff2 +0 -0
- package/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/cdn/beer.ts +5 -0
- package/src/cdn/material-symbols-outlined.woff2 +0 -0
- package/src/cdn/material-symbols-rounded.woff2 +0 -0
- package/src/cdn/material-symbols-sharp.woff2 +0 -0
- package/src/cdn/settings/fonts.css +3 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Build material design interfaces in record time...
|
|
|
18
18
|
|
|
19
19
|
Cheers, www.beercss.com
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
# Sponsors
|
|
22
22
|
|
|
23
23
|
Beer CSS is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome sponsors and backers. If you'd like to join them, please consider sponsoring Beer CSS's development.
|
|
24
24
|
|
|
@@ -29,15 +29,17 @@ Beer CSS is an MIT-licensed open source project with its ongoing development mad
|
|
|
29
29
|
### Github sponsors
|
|
30
30
|
<p><a href="https://github.com/sponsors/beercss"><img src="https://avatars.githubusercontent.com/u/74856856?s=40&v=4" alt="Sponsors"></a></p>
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
# Why?
|
|
33
33
|
|
|
34
|
-
- The first CSS framework based on Material Design 3.
|
|
35
|
-
- 10x smaller than others CSS frameworks based on Material Design.
|
|
36
|
-
- Translates Material Design to HTML semantic standard.
|
|
37
|
-
- Ready to use with any JS framework.
|
|
38
|
-
- Highly focused on DX.
|
|
34
|
+
- 🥇 The first CSS framework based on Material Design 3.
|
|
35
|
+
- ⬇️ 10x smaller than others CSS frameworks based on Material Design.
|
|
36
|
+
- 🧙♂️ Translates Material Design to HTML semantic standard.
|
|
37
|
+
- 🤓 Ready to use with any JS framework.
|
|
38
|
+
- 🪄 Highly focused on DX.
|
|
39
|
+
- 🚫 No build steps, configurations or dependencies.
|
|
40
|
+
- ✨ Build modern interfaces without any custom CSS.
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
# Applying "the beer way" in css?
|
|
41
43
|
|
|
42
44
|
This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebot"** created in 1516. This law states that beer should only be brewed with the following ingredients: **water**, **barley malt** and **hops**. Only 3 ingredients. Exciting, right? So we thinking about It and our 3 ingredients are: **settings**, **elements** and **helpers**. This sounds weird at first time, because It's not BEM, OOCSS, SMACSS, ITCSS, "Utility first" or any other approach. Our approach doesn't avoid some bad practices, but is lightweight, tasty and pure like a beer. Just try it and feel it! 😁
|
|
43
45
|
|
|
@@ -56,7 +58,7 @@ This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebo
|
|
|
56
58
|
|---------------|
|
|
57
59
|
```
|
|
58
60
|
|
|
59
|
-
### DO:
|
|
61
|
+
### ✅ DO:
|
|
60
62
|
|
|
61
63
|
```
|
|
62
64
|
// 1 setting to 1 document
|
|
@@ -83,7 +85,7 @@ This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebo
|
|
|
83
85
|
.element > .helper {...}
|
|
84
86
|
```
|
|
85
87
|
|
|
86
|
-
### DON'T:
|
|
88
|
+
### 🚫 DON'T:
|
|
87
89
|
|
|
88
90
|
```
|
|
89
91
|
// N elements to 1 tag
|
|
@@ -113,7 +115,7 @@ This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebo
|
|
|
113
115
|
.element .helper {...}
|
|
114
116
|
```
|
|
115
117
|
|
|
116
|
-
|
|
118
|
+
# Get started
|
|
117
119
|
|
|
118
120
|
### CDN
|
|
119
121
|
|
|
@@ -121,20 +123,20 @@ From jsdelivr.net.
|
|
|
121
123
|
|
|
122
124
|
```html
|
|
123
125
|
// with html
|
|
124
|
-
<link href="https://cdn.jsdelivr.net/npm/beercss@3.5.
|
|
125
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.5.
|
|
126
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.
|
|
126
|
+
<link href="https://cdn.jsdelivr.net/npm/beercss@3.5.8/dist/cdn/beer.min.css" rel="stylesheet" />
|
|
127
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.5.8/dist/cdn/beer.min.js"></script>
|
|
128
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.1/dist/cdn/material-dynamic-colors.min.js"></script>
|
|
127
129
|
```
|
|
128
130
|
|
|
129
131
|
```css
|
|
130
132
|
// with css
|
|
131
|
-
@import "https://cdn.jsdelivr.net/npm/beercss@3.5.
|
|
133
|
+
@import "https://cdn.jsdelivr.net/npm/beercss@3.5.8/dist/cdn/beer.min.css";
|
|
132
134
|
```
|
|
133
135
|
|
|
134
136
|
```js
|
|
135
137
|
// with javascript
|
|
136
|
-
import "https://cdn.jsdelivr.net/npm/beercss@3.5.
|
|
137
|
-
import "https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.
|
|
138
|
+
import "https://cdn.jsdelivr.net/npm/beercss@3.5.8/dist/cdn/beer.min.js";
|
|
139
|
+
import "https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.1/dist/cdn/material-dynamic-colors.min.js";
|
|
138
140
|
```
|
|
139
141
|
|
|
140
142
|
### NPM
|
|
@@ -185,9 +187,9 @@ You can use this html to setup your project. See on [Codepen](https://codepen.io
|
|
|
185
187
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
186
188
|
<meta name="google" content="notranslate">
|
|
187
189
|
<title>Hello world</title>
|
|
188
|
-
<link href="https://cdn.jsdelivr.net/npm/beercss@3.5.
|
|
189
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.5.
|
|
190
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.
|
|
190
|
+
<link href="https://cdn.jsdelivr.net/npm/beercss@3.5.8/dist/cdn/beer.min.css" rel="stylesheet">
|
|
191
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.5.8/dist/cdn/beer.min.js"></script>
|
|
192
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.1/dist/cdn/material-dynamic-colors.min.js"></script>
|
|
191
193
|
</head>
|
|
192
194
|
<body class="dark">
|
|
193
195
|
<nav class="left drawer l">
|
|
@@ -277,7 +279,7 @@ You can use this html to setup your project. See on [Codepen](https://codepen.io
|
|
|
277
279
|
|
|
278
280
|
**We recommend use the material-dynamic-colors only when your app needs to change theme at runtime.**
|
|
279
281
|
|
|
280
|
-
|
|
282
|
+
# Documentation
|
|
281
283
|
|
|
282
284
|
Complete documentation and examples available at:
|
|
283
285
|
|
|
@@ -285,15 +287,15 @@ Complete documentation and examples available at:
|
|
|
285
287
|
- **[Codepen](https://codepen.io/collection/XydYMB)**
|
|
286
288
|
- **[Homepage](https://www.beercss.com)**
|
|
287
289
|
|
|
288
|
-
|
|
290
|
+
# Contributing guide
|
|
289
291
|
|
|
290
292
|
Hi! We are really excited that you are interested in contributing to Beer CSS! Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
|
|
291
293
|
|
|
292
294
|
[Beer CSS Contributing Guidelines](CONTRIBUTING.md)
|
|
293
295
|
|
|
294
|
-
|
|
296
|
+
# License
|
|
295
297
|
|
|
296
298
|
[MIT](https://opensource.org/licenses/MIT)
|
|
297
299
|
|
|
298
|
-
|
|
300
|
+
# Cheers to all people here 🍻
|
|
299
301
|
[](https://github.com/beercss/beercss/stargazers)
|