@whatsaaaa/design-system 0.6.0 → 0.6.1
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 +2 -2
- package/dist/css/base.css +21 -1
- package/dist/css/callout.css +10 -0
- package/dist/css/code.css +24 -0
- package/dist/css/ghost.css +24 -0
- package/dist/css/icons.css +12 -0
- package/dist/css/pairs.css +26 -0
- package/dist/css/prose.css +20 -1
- package/dist/css/segmented.css +20 -0
- package/dist/css/terminal.css +158 -9
- package/dist/css/theme.css +20 -0
- package/dist/index.css +304 -11
- package/dist/shortcuts/index.d.ts +11 -9
- package/dist/shortcuts/index.js +12 -10
- package/dist/shortcuts/init.js +2 -2
- package/dist/vitepress-config/index.js +2 -1
- package/docs/usage.md +37 -7
- package/package.json +1 -1
- package/src/vitepress/styles/nav.css +13 -6
package/dist/css/theme.css
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* An element for one theme only, such as one cut of a mark or the name of the theme.
|
|
3
|
+
*
|
|
4
|
+
* <img class="ws-theme-dark" src="mark-on-dark.svg" alt="whatsaaaa" />
|
|
5
|
+
* <img class="ws-theme-light" src="mark-on-light.svg" alt="whatsaaaa" />
|
|
6
|
+
*
|
|
7
|
+
* Both are in the page and the styles show the one of the theme in effect where it stands:
|
|
8
|
+
* the nearest choice, data-theme or a dark or light class, on <html> or on an element around
|
|
9
|
+
* it, or the system's preference when there is none. So the right one shows before any script
|
|
10
|
+
* runs.
|
|
11
|
+
*
|
|
12
|
+
* It hides with !important because it has to win over whatever else gives the element a
|
|
13
|
+
* display, such as a flex item of the status line. The status line's --dark and --light
|
|
14
|
+
* items are older names of the same two classes.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* The rules are written by the token build, from the same selectors as the theme blocks of the
|
|
19
|
+
* tokens: scripts/lib/theme-selectors.ts.
|
|
20
|
+
*/
|
|
1
21
|
:is(.ws-theme-dark, .ws-status-line__item--dark):where(:is([data-theme="light"], .light:where(:not([data-theme], .dark))), :is([data-theme="light"], .light:where(:not([data-theme], .dark))) *):not(:is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))), :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) *), :is(.ws-theme-dark, .ws-status-line__item--dark):where(:is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))), :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) *):not(:is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))), :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) *), :is(.ws-theme-light, .ws-status-line__item--light):where(:is([data-theme="dark"], .dark:where(:not([data-theme], .light))), :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) *):not(:is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))), :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) *), :is(.ws-theme-light, .ws-status-line__item--light):where(:is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))), :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) *):not(:is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))), :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) :is([data-theme="dark"], .dark:where(:not([data-theme], .light))) :is([data-theme="light"], .light:where(:not([data-theme], .dark))) *) {
|
|
2
22
|
display: none !important;
|
|
3
23
|
}
|