@kausal/themes 0.1.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.
@@ -0,0 +1,205 @@
1
+ /* node_modules/@fontsource/inter/400.css */
2
+ @font-face {
3
+ font-family: "Inter";
4
+ font-style: normal;
5
+ font-display: swap;
6
+ font-weight: 400;
7
+ src: url(./inter-cyrillic-ext-400-normal-KXIR7XMC.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
8
+ unicode-range:
9
+ U+0460-052F,
10
+ U+1C80-1C88,
11
+ U+20B4,
12
+ U+2DE0-2DFF,
13
+ U+A640-A69F,
14
+ U+FE2E-FE2F;
15
+ }
16
+ @font-face {
17
+ font-family: "Inter";
18
+ font-style: normal;
19
+ font-display: swap;
20
+ font-weight: 400;
21
+ src: url(./inter-cyrillic-400-normal-TFNOAKCO.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
22
+ unicode-range:
23
+ U+0400-045F,
24
+ U+0490-0491,
25
+ U+04B0-04B1,
26
+ U+2116;
27
+ }
28
+ @font-face {
29
+ font-family: "Inter";
30
+ font-style: normal;
31
+ font-display: swap;
32
+ font-weight: 400;
33
+ src: url(./inter-greek-ext-400-normal-MAOIJAZ4.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
34
+ unicode-range: U+1F00-1FFF;
35
+ }
36
+ @font-face {
37
+ font-family: "Inter";
38
+ font-style: normal;
39
+ font-display: swap;
40
+ font-weight: 400;
41
+ src: url(./inter-greek-400-normal-UZGFX5QY.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
42
+ unicode-range: U+0370-03FF;
43
+ }
44
+ @font-face {
45
+ font-family: "Inter";
46
+ font-style: normal;
47
+ font-display: swap;
48
+ font-weight: 400;
49
+ src: url(./inter-vietnamese-400-normal-3GSCER3X.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
50
+ unicode-range:
51
+ U+0102-0103,
52
+ U+0110-0111,
53
+ U+0128-0129,
54
+ U+0168-0169,
55
+ U+01A0-01A1,
56
+ U+01AF-01B0,
57
+ U+1EA0-1EF9,
58
+ U+20AB;
59
+ }
60
+ @font-face {
61
+ font-family: "Inter";
62
+ font-style: normal;
63
+ font-display: swap;
64
+ font-weight: 400;
65
+ src: url(./inter-latin-ext-400-normal-KWJ57KGP.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
66
+ unicode-range:
67
+ U+0100-024F,
68
+ U+0259,
69
+ U+1E00-1EFF,
70
+ U+2020,
71
+ U+20A0-20AB,
72
+ U+20AD-20CF,
73
+ U+2113,
74
+ U+2C60-2C7F,
75
+ U+A720-A7FF;
76
+ }
77
+ @font-face {
78
+ font-family: "Inter";
79
+ font-style: normal;
80
+ font-display: swap;
81
+ font-weight: 400;
82
+ src: url(./inter-latin-400-normal-54EXAHDU.woff2) format("woff2"), url(./inter-all-400-normal-7BAD43YU.woff) format("woff");
83
+ unicode-range:
84
+ U+0000-00FF,
85
+ U+0131,
86
+ U+0152-0153,
87
+ U+02BB-02BC,
88
+ U+02C6,
89
+ U+02DA,
90
+ U+02DC,
91
+ U+2000-206F,
92
+ U+2074,
93
+ U+20AC,
94
+ U+2122,
95
+ U+2191,
96
+ U+2193,
97
+ U+2212,
98
+ U+2215,
99
+ U+FEFF,
100
+ U+FFFD;
101
+ }
102
+
103
+ /* node_modules/@fontsource/inter/700.css */
104
+ @font-face {
105
+ font-family: "Inter";
106
+ font-style: normal;
107
+ font-display: swap;
108
+ font-weight: 700;
109
+ src: url(./inter-cyrillic-ext-700-normal-RIOVNUT5.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
110
+ unicode-range:
111
+ U+0460-052F,
112
+ U+1C80-1C88,
113
+ U+20B4,
114
+ U+2DE0-2DFF,
115
+ U+A640-A69F,
116
+ U+FE2E-FE2F;
117
+ }
118
+ @font-face {
119
+ font-family: "Inter";
120
+ font-style: normal;
121
+ font-display: swap;
122
+ font-weight: 700;
123
+ src: url(./inter-cyrillic-700-normal-4PTRGNYN.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
124
+ unicode-range:
125
+ U+0400-045F,
126
+ U+0490-0491,
127
+ U+04B0-04B1,
128
+ U+2116;
129
+ }
130
+ @font-face {
131
+ font-family: "Inter";
132
+ font-style: normal;
133
+ font-display: swap;
134
+ font-weight: 700;
135
+ src: url(./inter-greek-ext-700-normal-RLF7GESX.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
136
+ unicode-range: U+1F00-1FFF;
137
+ }
138
+ @font-face {
139
+ font-family: "Inter";
140
+ font-style: normal;
141
+ font-display: swap;
142
+ font-weight: 700;
143
+ src: url(./inter-greek-700-normal-ZJKPKXUR.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
144
+ unicode-range: U+0370-03FF;
145
+ }
146
+ @font-face {
147
+ font-family: "Inter";
148
+ font-style: normal;
149
+ font-display: swap;
150
+ font-weight: 700;
151
+ src: url(./inter-vietnamese-700-normal-UIGYBLQH.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
152
+ unicode-range:
153
+ U+0102-0103,
154
+ U+0110-0111,
155
+ U+0128-0129,
156
+ U+0168-0169,
157
+ U+01A0-01A1,
158
+ U+01AF-01B0,
159
+ U+1EA0-1EF9,
160
+ U+20AB;
161
+ }
162
+ @font-face {
163
+ font-family: "Inter";
164
+ font-style: normal;
165
+ font-display: swap;
166
+ font-weight: 700;
167
+ src: url(./inter-latin-ext-700-normal-7HGONUKA.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
168
+ unicode-range:
169
+ U+0100-024F,
170
+ U+0259,
171
+ U+1E00-1EFF,
172
+ U+2020,
173
+ U+20A0-20AB,
174
+ U+20AD-20CF,
175
+ U+2113,
176
+ U+2C60-2C7F,
177
+ U+A720-A7FF;
178
+ }
179
+ @font-face {
180
+ font-family: "Inter";
181
+ font-style: normal;
182
+ font-display: swap;
183
+ font-weight: 700;
184
+ src: url(./inter-latin-700-normal-FHO5KYOC.woff2) format("woff2"), url(./inter-all-700-normal-V4XBRJWF.woff) format("woff");
185
+ unicode-range:
186
+ U+0000-00FF,
187
+ U+0131,
188
+ U+0152-0153,
189
+ U+02BB-02BC,
190
+ U+02C6,
191
+ U+02DA,
192
+ U+02DC,
193
+ U+2000-206F,
194
+ U+2074,
195
+ U+20AC,
196
+ U+2122,
197
+ U+2191,
198
+ U+2193,
199
+ U+2212,
200
+ U+2215,
201
+ U+FEFF,
202
+ U+FFFD;
203
+ }
204
+
205
+ /* themes/default/main.scss */
package/index.js ADDED
@@ -0,0 +1,42 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+
5
+ function generateThemeSymlinks(destPath) {
6
+ if (!fs.existsSync(destPath)) {
7
+ fs.mkdirSync(destPath, { recursive: true });
8
+ }
9
+
10
+ const themes = JSON.parse(fs.readFileSync(path.join(__dirname, 'themes.json')));
11
+ for (const theme of themes) {
12
+ const symlinkPath = path.join(destPath, theme);
13
+ const themePath = path.join(__dirname, 'dist', 'themes', theme)
14
+ if (fs.existsSync(symlinkPath)) {
15
+ continue;
16
+ }
17
+ console.log(`🔗 Linking ${themePath} → ${symlinkPath}`);
18
+ fs.symlinkSync(themePath, symlinkPath);
19
+ }
20
+ }
21
+
22
+ class SymlinkThemesPlugin {
23
+ constructor(destPath) {
24
+ this.destPath = destPath;
25
+ }
26
+ apply(compiler) {
27
+ compiler.hooks.done.tap(
28
+ 'Symlink Themes Plugin',
29
+ (stats) => {
30
+ const { compilation } = stats;
31
+ const { options } = compilation;
32
+
33
+ generateThemeSymlinks(this.destPath)
34
+ }
35
+ );
36
+ }
37
+ }
38
+
39
+ module.exports = {
40
+ generateThemeSymlinks,
41
+ SymlinkThemesPlugin
42
+ };
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@kausal/themes",
3
+ "version": "0.1.0",
4
+ "description": "Themes for Kausal products",
5
+ "main": "index.js",
6
+ "author": "Tero Tikkanen <tero.tikkanen@kausal.tech>",
7
+ "license": "AGPL-3.0-or-later",
8
+ "dependencies": {
9
+ },
10
+ "files": ["dist/**", "themes.json"],
11
+ "private": false
12
+ }
package/themes.json ADDED
@@ -0,0 +1 @@
1
+ ["default"]