@master/css 2.0.0-beta.24 → 2.0.0-beta.25

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.
@@ -4,6 +4,7 @@ export default class extends MasterCSSRule {
4
4
  static id: string;
5
5
  static matches: RegExp;
6
6
  static propName: string;
7
+ static colorful: boolean;
7
8
  get(declaration: any): {
8
9
  [key: string]: any;
9
10
  };
@@ -4,5 +4,6 @@ export default class extends MasterCSSRule {
4
4
  static id: string;
5
5
  static matches: RegExp;
6
6
  static propName: string;
7
+ static colorful: boolean;
7
8
  parseValue(value: string, config: MasterCSSConfig): string;
8
9
  }
package/package.json CHANGED
@@ -33,9 +33,9 @@
33
33
  "./src/polyfills/css-escape.ts"
34
34
  ],
35
35
  "scripts": {
36
- "build:iife": "esbuild src/index.browser.ts --bundle --outfile=dist/index.browser.js --format=iife",
37
- "build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --format=cjs --platform=node",
38
- "build:esm": "esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --platform=node",
36
+ "build:iife": "esbuild src/index.browser.ts --bundle --outfile=dist/index.browser.js --format=iife --target=es2019",
37
+ "build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --format=cjs --platform=node --target=es2019",
38
+ "build:esm": "esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --platform=node --target=es2019",
39
39
  "build:css": "esbuild src/index.css --bundle --outfile=dist/index.css",
40
40
  "dev:iife": "npm run build:iife -- --watch",
41
41
  "dev:cjs": "npm run build:cjs -- --watch",
@@ -158,5 +158,5 @@
158
158
  "typescript": "^4.8.4",
159
159
  "dedent": "^0.7.0"
160
160
  },
161
- "version": "2.0.0-beta.24"
161
+ "version": "2.0.0-beta.25"
162
162
  }
package/readme.md DELETED
@@ -1,118 +0,0 @@
1
- <br><br>
2
- <div align="center">
3
-
4
- <p align="center">
5
- <img src="https://raw.githubusercontent.com/master-co/package/document/images/logo-and-text.svg" alt="logo" width="142">
6
- </p>
7
- <p align="center">
8
- <b><!-- name -->CSS<!----></b>
9
- </p>
10
- <p align="center"><!-- package.description -->A Virtual CSS language with enhanced syntax. ~13KB<!----></p>
11
-
12
- [![MIT License](https://flat.badgen.net/github/license/master-co/css?color=yellow)](https://github.com/master-co/css/blob/main/LICENSE)
13
- [![Latest Release](https://flat.badgen.net/npm/v/@master/css?icon=npm&label&color=yellow)](https://www.npmjs.com/package/@master/css)
14
- [![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/@master/css?icon=packagephobia&label&color=yellow)](https://bundlephobia.com/package/@master/css 'gzip bundle size (including dependencies)')
15
- [![Package Size](https://flat.badgen.net/badgesize/brotli/https://cdn.jsdelivr.net/npm/@master/css?icon=jsdelivr&label&color=yellow)](https://unpkg.com/@master/css 'brotli package size (without dependencies)')
16
- [![Documentation](https://flat.badgen.net/badge/icon/Documentation?icon=awesome&label&color=yellow)](https://css.master.co)
17
- [![Github](https://flat.badgen.net/badge/icon/master-co%2Fcss?icon=github&label&color=yellow)](https://github.com/master-co/css)
18
- [![Discord](https://flat.badgen.net/badge/icon/discord?icon=discord&label&color=yellow)](https://discord.gg/sZNKpAAAw6)
19
- [![CI](https://flat.badgen.net/github/status/master-co/css/main/ci/circleci?icon=circleci)](https://circleci.com/gh/master-co/workflows/css/tree/main)
20
-
21
- </div>
22
-
23
- ![image](https://raw.githubusercontent.com/master-co/css-language-service/alpha/images/cover.jpg)
24
-
25
- - Visit [css.master.co](https://css.master.co) for full documentation.
26
- - Browse our [discussion community](https://github.com/master-co/css/discussions).
27
- - Join our [discord channel](https://discord.gg/sZNKpAAAw6).
28
- - Follow our [twitter](https://twitter.com/mastercorg).
29
-
30
- ##### On this page
31
-
32
- - [Features](#features)
33
- - [Why Master CSS](#why-master-css)
34
- - [Quick Start](#quick-start)
35
- - [Developer Tools](#developer-tools)
36
- - [Inspiration](#inspiration)
37
- - [Related](#related)
38
-
39
- # Features
40
- Let's have a quick overview of the **groundbreaking features** of Master CSS:
41
-
42
- - 🔥 A whole new **CSS language** instead of utilities/libraries.
43
- - 🔓 Write CSS properties, functions, selectors and even media queries directly in `class="..."`.
44
- - 🧠 Automatically generate corresponding CSS rules based on class names.
45
- - 💖 With enhanced CSS syntax, you can **build UIs with less code**.
46
- - ⚡️ Directly use **performant JIT in production**. **~13KB**
47
- - 🧬 [An enhanced and structured CSS syntax](https://docs.master.co/css/syntax-tutorial) for class names.
48
- - 🌈 [A forerunner to syntax highlighting](https://docs.master.co/css/why-master-css#a-forerunner-to-syntax-highlighting) for class names.
49
- - ✨ [Hybrid Rendering](https://docs.master.co/css/hybrid-rendering) that allows you to **pre-generate CSS from HTML on the server side**, and then continue to **use JIT on the client side**.
50
- - ✨ [Group Styles](https://docs.master.co/css/syntax-tutorial#group-styles) that allows you to extract the same selectors and media query styles and make it short.
51
- - ✨ [Reactive Styles](https://docs.master.co/css/syntax-tutorial#style-an-element-based-on-target-state) that allows you to style an element based on parent/sibling state.
52
-
53
- To learn more, check out the [documentation](https://docs.master.co/css/why-master-css).
54
-
55
- # [Why Master CSS](https://docs.master.co/css/why-master-css)
56
- A brief introduction starts by giving you an understanding of **markup-driven CSS**.
57
-
58
- 😐 Traditional
59
- ```html
60
- <style>
61
- .home-section {
62
- background-color: blue;
63
- padding: 2rem;
64
- text-align: center;
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/css.react](https://github.com/master-co/css.react) - React hooks for Master CSS
115
- - [@master/css-compiler](https://github.com/master-co/css-compiler) - Compile Master CSS ahead of time with zero-configuration integration with build tools
116
- - [@master/normal.css](https://github.com/master-co/normal.css) - Normalize browser's styles. ~1KB
117
- - [@master/keyframes.css](https://github.com/master-co/keyframes.css) - Simple and useful CSS keyframes. ~0.4KB
118
- - [@master/style-element.react](https://github.com/master-co/style-element.react) - Quickly create styled React elements with conditional class names. ~800B