@master/css 1.37.7 β 1.37.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 +95 -107
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,116 +1,104 @@
|
|
|
1
|
-
<br
|
|
1
|
+
<br>
|
|
2
2
|
<div align="center">
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<
|
|
5
|
+
<a href="https://css.master.co">
|
|
6
|
+
<picture>
|
|
7
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/33840671/201701649-3bb7d698-abec-4d5f-ac30-ccc4d7bafcd4.svg">
|
|
8
|
+
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/33840671/201703010-77bf2373-9899-40cc-98f5-30cf9b546941.svg">
|
|
9
|
+
<img alt="Master CSS" src="https://user-images.githubusercontent.com/33840671/201703010-77bf2373-9899-40cc-98f5-30cf9b546941.svg" width="100%">
|
|
10
|
+
</picture>
|
|
11
|
+
</a>
|
|
6
12
|
</p>
|
|
13
|
+
<p align="center"><!-- package.description -->A Virtual CSS language with enhanced syntax ~13KB<!----></p>
|
|
14
|
+
|
|
7
15
|
<p align="center">
|
|
8
|
-
<
|
|
16
|
+
<a aria-label="GitHub release (latest by date including pre-releases)" href="https://github.com/master-co/css/releases">
|
|
17
|
+
<picture>
|
|
18
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/v/release/master-co/css?include_prereleases&color=212022&label=&style=for-the-badge&logo=github&logoColor=fff">
|
|
19
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/v/release/master-co/css?include_prereleases&color=f6f7f8&label=&style=for-the-badge&logo=github&logoColor=%23000">
|
|
20
|
+
<img alt="NPM Version" src="https://img.shields.io/github/v/release/master-co/css?include_prereleases&color=f6f7f8&label=&style=for-the-badge&logo=github">
|
|
21
|
+
</picture>
|
|
22
|
+
</a>
|
|
23
|
+
<a aria-label="NPM Package" href="https://www.npmjs.com/package/@master/css">
|
|
24
|
+
<picture>
|
|
25
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/dm/@master/css?color=212022&label=%20&logo=npm&style=for-the-badge">
|
|
26
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/npm/dm/@master/css?color=f6f7f8&label=%20&logo=npm&style=for-the-badge">
|
|
27
|
+
<img alt="NPM package ( download / month )" src="https://img.shields.io/npm/dm/@master/css?color=f6f7f8&label=%20&logo=npm&style=for-the-badge">
|
|
28
|
+
</picture>
|
|
29
|
+
</a>
|
|
30
|
+
<a aria-label="JSDelivr" href="https://www.jsdelivr.com/package/npm/@master/css">
|
|
31
|
+
<picture>
|
|
32
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/jsdelivr/npm/hm/@master/css?color=212022&label=%20&logo=jsdelivr&style=for-the-badge">
|
|
33
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/jsdelivr/npm/hm/@master/css?color=f6f7f8&label=%20&logo=jsdelivr&style=for-the-badge">
|
|
34
|
+
<img alt="JSDelivr hits (npm scoped)" src="https://img.shields.io/jsdelivr/npm/hm/@master/css?color=f6f7f8&label=%20&logo=jsdelivr&style=for-the-badge">
|
|
35
|
+
</picture>
|
|
36
|
+
</a>
|
|
37
|
+
<a aria-label="Discord Community" href="https://discord.gg/sZNKpAAAw6">
|
|
38
|
+
<picture>
|
|
39
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/discord/917780624314613760?color=212022&label=%20&logo=discord&style=for-the-badge">
|
|
40
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/discord/917780624314613760?color=f6f7f8&label=%20&logo=discord&style=for-the-badge">
|
|
41
|
+
<img alt="Discord online" src="https://img.shields.io/discord/917780624314613760?color=f6f7f8&label=%20&logo=discord&style=for-the-badge">
|
|
42
|
+
</picture>
|
|
43
|
+
</a>
|
|
44
|
+
<a aria-label="Follow @mastercorg" href="https://twitter.com/mastercorg">
|
|
45
|
+
<picture>
|
|
46
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/static/v1?label=%20&message=twitter&color=212022&logo=twitter&style=for-the-badge">
|
|
47
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/static/v1?label=%20&message=twitter&color=f6f7f8&logo=twitter&style=for-the-badge">
|
|
48
|
+
<img alt="Follow @mastercorg" src="https://img.shields.io/static/v1?label=%20&message=twitter&color=f6f7f8&logo=twitter&style=for-the-badge">
|
|
49
|
+
</picture>
|
|
50
|
+
</a>
|
|
51
|
+
<a aria-label="Github Actions" href="https://github.com/1aron/repo/actions/workflows/release.yml">
|
|
52
|
+
<picture>
|
|
53
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/workflow/status/master-co/css/Release?label=%20&message=twitter&color=212022&logo=githubactions&style=for-the-badge">
|
|
54
|
+
<source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/workflow/status/master-co/css/Release?label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
55
|
+
<img alt="Github release actions" src="https://img.shields.io/github/workflow/status/master-co/css/Release?label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
|
|
56
|
+
</picture>
|
|
57
|
+
</a>
|
|
9
58
|
</p>
|
|
10
|
-
<p align="center"><!-- package.description -->A Virtual CSS language with enhanced syntax. ~13KB<!----></p>
|
|
11
|
-
|
|
12
|
-
[](https://github.com/master-co/css/blob/main/LICENSE)
|
|
13
|
-
[](https://www.npmjs.com/package/@master/css)
|
|
14
|
-
[](https://bundlephobia.com/package/@master/css 'gzip bundle size (including dependencies)')
|
|
15
|
-
[](https://unpkg.com/@master/css 'brotli package size (without dependencies)')
|
|
16
|
-
[](https://css.master.co)
|
|
17
|
-
[](https://github.com/master-co/css)
|
|
18
|
-
[](https://discord.gg/sZNKpAAAw6)
|
|
19
|
-
[](https://circleci.com/gh/master-co/workflows/css/tree/main)
|
|
20
59
|
|
|
21
60
|
</div>
|
|
22
61
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- [
|
|
34
|
-
- [
|
|
35
|
-
- [
|
|
36
|
-
- [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
.home-section:hover {
|
|
68
|
-
background-color: red;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@media (min-width: 1024px) {
|
|
72
|
-
.home-section {
|
|
73
|
-
padding: 3rem;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
</style>
|
|
77
|
-
|
|
78
|
-
<section class="home-section">...</section>
|
|
79
|
-
```
|
|
80
|
-
π€© Now, refactor it with a whole new CSS language to make it easier. β 86% code
|
|
81
|
-
```html
|
|
82
|
-
<section class="bg:blue bg:red:hover p:32 p:48@md text:center">...</section>
|
|
83
|
-
```
|
|
84
|
-
To learn more, check out the [Why Master CSS](https://docs.master.co/css/why-master-css) documentation.
|
|
85
|
-
|
|
86
|
-
# Quick Start
|
|
87
|
-
This is a quick start guide, check out the [full setup guide](https://docs.master.co/css/setup) to integrate with your build tools and frameworks.
|
|
88
|
-
|
|
89
|
-
```shell
|
|
90
|
-
npm install @master/css
|
|
91
|
-
```
|
|
92
|
-
```js
|
|
93
|
-
import '@master/css';
|
|
94
|
-
```
|
|
95
|
-
or use a CDN
|
|
96
|
-
```html
|
|
97
|
-
<script src="https://cdn.master.co/css"></script>
|
|
98
|
-
```
|
|
99
|
-
Now, start styling HTML with Master CSS. π
|
|
100
|
-
```html
|
|
101
|
-
<h1 class="font:40 font:heavy italic m:50 text:center">Hello World</h1>
|
|
102
|
-
```
|
|
103
|
-
To learn more, check out the [Syntax tutorial](https://docs.master.co/css/syntax-tutorial) documentation.
|
|
104
|
-
|
|
105
|
-
# Developer Tools
|
|
106
|
-
- [Master CSS Language Service](https://marketplace.visualstudio.com/items?itemName=masterco.master-css-language-service) - A Visual Studio Code extension for Master CSS. Provides code-completion and syntax highlighting.
|
|
107
|
-
|
|
108
|
-
# Inspiration
|
|
109
|
-
Some of our core concepts and designs are inspired by these giants.
|
|
110
|
-
- __Language__ - Master is a language, but it was originally inspired by [ACSS](https://acss.io/)'s concept of atomic classes.
|
|
111
|
-
- __Virtual CSS__ - Difference algorithms, virtual models, etc. are inspired by [Virtual DOM](https://reactjs.org/docs/faq-internals.html).
|
|
112
|
-
|
|
113
|
-
# Related
|
|
114
|
-
- [@master/normal.css](https://github.com/master-co/normal.css) - Normalize browser's styles. ~1KB
|
|
115
|
-
- [@master/keyframes.css](https://github.com/master-co/keyframes.css) - Simple and useful CSS keyframes. ~0.4KB
|
|
116
|
-
- [@master/style-element.react](https://github.com/master-co/style-element.react) - Quickly create styled React elements with conditional class names. ~800B
|
|
62
|
+
## Documentation
|
|
63
|
+
Visit [css.master.co](https://css.master.co) to view the full documentation
|
|
64
|
+
|
|
65
|
+
## Getting Started
|
|
66
|
+
Check out the [guides](https://docs.master.co/css) to get started with Master CSS
|
|
67
|
+
|
|
68
|
+
## Ecosystem
|
|
69
|
+
|
|
70
|
+
#### Integrations
|
|
71
|
+
|
|
72
|
+
- [Compiler](https://github.com/master-co/css/tree/beta/packages/compiler) - The ahead-of-time compiler of Master CSS
|
|
73
|
+
- [Vite Plugin](https://github.com/master-co/css/tree/beta/packages/vite) - A vite plugin for integrating Master CSS AOT compilation
|
|
74
|
+
- [Webpack Plugin](https://github.com/master-co/css/tree/beta/packages/webpack) - A webpack plugin for integrating Master CSS AOT compilation
|
|
75
|
+
- [React](https://github.com/master-co/css/tree/beta/packages/react) - React hooks for Master CSS
|
|
76
|
+
|
|
77
|
+
#### Native Plugins
|
|
78
|
+
|
|
79
|
+
- [Normal CSS](https://github.com/master-co/css/tree/beta/packages/normal.css) - Normalize the browser's styles
|
|
80
|
+
- [Keyframes CSS](https://github.com/master-co/css/tree/beta/packages/keyframes.css) - Simple and useful CSS keyframes
|
|
81
|
+
|
|
82
|
+
#### Extensions
|
|
83
|
+
- [Master CSS Language Service](https://github.com/master-co/css-language-service) <sub><sup>Visual Studio Code</sup></sub> - Includes code completion, syntax highlighting, CSS hover preview, and inline color decorators
|
|
84
|
+
|
|
85
|
+
#### Related
|
|
86
|
+
|
|
87
|
+
- [Style Element for React](https://github.com/master-co/style-element.react) - Quickly create reusable React elements driven by class names
|
|
88
|
+
|
|
89
|
+
## Community
|
|
90
|
+
The Master CSS community can be found here:
|
|
91
|
+
|
|
92
|
+
- [Discuss on GitHub](https://github.com/master-co/css/discussions) - Ask questions, voice ideas, and do any other discussion.
|
|
93
|
+
- [Join our Discord Server](https://discord.com/invite/sZNKpAAAw6) - Casually chat with other people using the language. <sup><sub>β δΈζ</sub></sup>
|
|
94
|
+
|
|
95
|
+
###### [γ Code of Conduct γ](https://github.com/master-co/css/blob/main/CODE_OF_CONDUCT.md) applies to all Master CSS community channels.
|
|
96
|
+
|
|
97
|
+
## Contributing
|
|
98
|
+
Please see our *π§ CONTRIBUTING.md* for workflow.
|
|
99
|
+
<!-- Please see our [π§ CONTRIBUTING.md](https://github.com/master-co/css/blob/beta/.github/CONTRIBUTING.yml) for workflow. -->
|
|
100
|
+
|
|
101
|
+
## Inspiration
|
|
102
|
+
Some of the core concepts and designs are inspired by these giants.
|
|
103
|
+
- The concept of enhanced syntax is inspired by [SASS](https://sass-lang.com/) and [Typescript](https://www.typescriptlang.org/)
|
|
104
|
+
- The concept of Virtual CSS is inspired by the [Virtual DOM](https://reactjs.org/docs/faq-internals.html)
|
package/package.json
CHANGED