@guebbit/css-toolkit 1.0.0 → 1.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.
Files changed (43) hide show
  1. package/CHANGELOG +0 -0
  2. package/README.md +2 -1
  3. package/package.json +57 -326
  4. package/.stylelintignore +0 -2
  5. package/.stylelintrc.json +0 -23
  6. package/docs/.postcssrc.cjs +0 -12
  7. package/docs/.vitepress/config.ts +0 -89
  8. package/docs/.vitepress/theme/index.js +0 -12
  9. package/docs/colors/bootstrap.md +0 -1
  10. package/docs/colors/brands.md +0 -1
  11. package/docs/colors/customs.md +0 -1
  12. package/docs/functions/colors.md +0 -66
  13. package/docs/functions/helpers.md +0 -1
  14. package/docs/functions/strings.md +0 -1
  15. package/docs/index.md +0 -1
  16. package/docs/logo.svg +0 -55
  17. package/docs/logotype.svg +0 -149
  18. package/docs/mixins/build-aspect-ratio.md +0 -1
  19. package/docs/mixins/build-compatibility.md +0 -23
  20. package/docs/mixins/build-scrollbar.md +0 -19
  21. package/docs/mixins/create-colors.md +0 -1
  22. package/docs/mixins/create-helper-margin.md +0 -25
  23. package/docs/mixins/create-helper-padding.md +0 -24
  24. package/docs/mixins/create-instruction.md +0 -33
  25. package/src/colors/_bootstrap.scss +0 -180
  26. package/src/colors/_brands.scss +0 -20
  27. package/src/colors/_customs.scss +0 -53
  28. package/src/colors/_index.scss +0 -205
  29. package/src/functions/_colors.scss +0 -111
  30. package/src/functions/_helpers.scss +0 -23
  31. package/src/functions/_strings.scss +0 -31
  32. package/src/index.scss +0 -14
  33. package/src/mixins/_build-aspect-ratio.scss +0 -34
  34. package/src/mixins/_build-compatibility.scss +0 -28
  35. package/src/mixins/_build-scrollbar.scss +0 -32
  36. package/src/mixins/_create-colors.scss +0 -119
  37. package/src/mixins/_create-helper-margin.scss +0 -39
  38. package/src/mixins/_create-helper-padding.scss +0 -40
  39. package/src/mixins/_create-instruction.scss +0 -11
  40. package/test/compile.test.js +0 -19
  41. package/test/lint.test.js +0 -33
  42. package/test.scss +0 -65
  43. package/vite.config.ts +0 -26
package/CHANGELOG ADDED
File without changes
package/README.md CHANGED
@@ -2,4 +2,5 @@
2
2
  A repository containing helpful SCSS functions, mixins, and utilities for streamlining and standardizing CSS development
3
3
 
4
4
  # TODO
5
- create an automatic functions for gradients
5
+ - create an automatic functions for gradients
6
+ - More tests. For every function or mixin.
package/package.json CHANGED
@@ -1,326 +1,57 @@
1
- {
2
- "name": "@guebbit/css-toolkit",
3
- "type": "module",
4
- "version": "1.0.0",
5
- "description": "A repository containing helpful SCSS functions, mixins, and utilities for streamlining and standardizing CSS development",
6
- "main": "vite.config.js",
7
- "scripts": {
8
- "test": "mocha",
9
- "lint": "stylelint \"**/*.scss\" --fix",
10
- "docs:dev": "vitepress dev docs --port 8080",
11
- "docs:build": "vitepress build docs",
12
- "docs:serve": "vitepress serve docs --port 8080",
13
- "prepublish": "npm run lint && npm run test && npm run docs:build",
14
- "publish:public": "npm publish --access public"
15
- },
16
- "devDependencies": {
17
- "@types/node": "^20.11.0",
18
- "@vitejs/plugin-vue": "^5.0.3",
19
- "autoprefixer": "^10.4.16",
20
- "breakpoint-sass": "^3.0.0",
21
- "css-loader": "^6.9.0",
22
- "cssnano": "^6.0.3",
23
- "mocha": "^10.1.0",
24
- "postcss": "^8.4.33",
25
- "postcss-loader": "^7.3.4",
26
- "postcss-prefix-selector": "^1.16.0",
27
- "sass": "^1.69.7",
28
- "style-loader": "^3.3.4",
29
- "stylelint": "^16.1.0",
30
- "stylelint-config-prettier-scss": "^1.0.0",
31
- "stylelint-config-standard-scss": "^13.0.0",
32
- "stylelint-scss": "^6.0.0",
33
- "vite": "^5.0.11",
34
- "vitepress": "^1.0.0-rc.36"
35
- },
36
- "directories": {
37
- "doc": "docs",
38
- "test": "test"
39
- },
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/Guebbit/css-toolkit.git"
43
- },
44
- "keywords": [
45
- "SCSS",
46
- "Library"
47
- ],
48
- "author": "Guebbit <guerzoni.andrea91@gmail.com> (https://guebbit.com/)",
49
- "license": "AGPL-3.0-or-later",
50
- "bugs": {
51
- "url": "https://github.com/Guebbit/css-toolkit/issues"
52
- },
53
- "homepage": "https://github.com/Guebbit/css-toolkit#readme",
54
- "dependencies": {
55
- "acorn": "^8.11.3",
56
- "acorn-import-assertions": "^1.9.0",
57
- "ajv": "^8.12.0",
58
- "algoliasearch": "^4.22.1",
59
- "ansi-colors": "^4.1.1",
60
- "ansi-regex": "^6.0.1",
61
- "ansi-styles": "^4.3.0",
62
- "anymatch": "^3.1.3",
63
- "argparse": "^2.0.1",
64
- "array-union": "^2.1.0",
65
- "astral-regex": "^2.0.0",
66
- "balanced-match": "^1.0.2",
67
- "binary-extensions": "^2.2.0",
68
- "boolbase": "^1.0.0",
69
- "brace-expansion": "^2.0.1",
70
- "braces": "^3.0.2",
71
- "browser-stdout": "^1.3.1",
72
- "browserslist": "^4.23.0",
73
- "buffer-from": "^1.1.2",
74
- "callsites": "^3.1.0",
75
- "camelcase": "^6.3.0",
76
- "caniuse-api": "^3.0.0",
77
- "caniuse-lite": "^1.0.30001588",
78
- "chalk": "^4.1.2",
79
- "chokidar": "^3.5.3",
80
- "chrome-trace-event": "^1.0.3",
81
- "cliui": "^7.0.4",
82
- "color-convert": "^2.0.1",
83
- "color-name": "^1.1.4",
84
- "colord": "^2.9.3",
85
- "commander": "^7.2.0",
86
- "cosmiconfig": "^8.3.6",
87
- "cross-spawn": "^7.0.3",
88
- "css-declaration-sorter": "^7.1.1",
89
- "css-functions-list": "^3.2.1",
90
- "css-select": "^5.1.0",
91
- "css-tree": "^2.3.1",
92
- "css-what": "^6.1.0",
93
- "cssesc": "^3.0.0",
94
- "cssnano-preset-default": "^6.0.3",
95
- "cssnano-utils": "^4.0.1",
96
- "csso": "^5.0.5",
97
- "csstype": "^3.1.3",
98
- "debug": "^4.3.4",
99
- "decamelize": "^4.0.0",
100
- "diff": "^5.0.0",
101
- "dir-glob": "^3.0.1",
102
- "dom-serializer": "^2.0.0",
103
- "domelementtype": "^2.3.0",
104
- "domhandler": "^5.0.3",
105
- "domutils": "^3.1.0",
106
- "eastasianwidth": "^0.2.0",
107
- "electron-to-chromium": "^1.4.674",
108
- "emoji-regex": "^8.0.0",
109
- "enhanced-resolve": "^5.15.0",
110
- "entities": "^4.5.0",
111
- "env-paths": "^2.2.1",
112
- "error-ex": "^1.3.2",
113
- "es-module-lexer": "^1.4.1",
114
- "esbuild": "^0.19.12",
115
- "escalade": "^3.1.2",
116
- "escape-string-regexp": "^4.0.0",
117
- "eslint-scope": "^5.1.1",
118
- "esrecurse": "^4.3.0",
119
- "estraverse": "^4.3.0",
120
- "estree-walker": "^2.0.2",
121
- "events": "^3.3.0",
122
- "fast-deep-equal": "^3.1.3",
123
- "fast-glob": "^3.3.2",
124
- "fast-json-stable-stringify": "^2.1.0",
125
- "fastest-levenshtein": "^1.0.16",
126
- "fastq": "^1.17.1",
127
- "file-entry-cache": "^8.0.0",
128
- "fill-range": "^7.0.1",
129
- "find-up": "^5.0.0",
130
- "flat": "^5.0.2",
131
- "flat-cache": "^4.0.0",
132
- "flatted": "^3.2.9",
133
- "focus-trap": "^7.5.4",
134
- "foreground-child": "^3.1.1",
135
- "fraction.js": "^4.3.7",
136
- "fs.realpath": "^1.0.0",
137
- "get-caller-file": "^2.0.5",
138
- "glob": "^8.1.0",
139
- "glob-parent": "^5.1.2",
140
- "glob-to-regexp": "^0.4.1",
141
- "global-modules": "^2.0.0",
142
- "global-prefix": "^3.0.0",
143
- "globby": "^11.1.0",
144
- "globjoin": "^0.1.4",
145
- "graceful-fs": "^4.2.11",
146
- "has-flag": "^4.0.0",
147
- "he": "^1.2.0",
148
- "hookable": "^5.5.3",
149
- "html-tags": "^3.3.1",
150
- "icss-utils": "^5.1.0",
151
- "ignore": "^5.3.1",
152
- "immutable": "^4.3.5",
153
- "import-fresh": "^3.3.0",
154
- "imurmurhash": "^0.1.4",
155
- "inflight": "^1.0.6",
156
- "inherits": "^2.0.4",
157
- "ini": "^1.3.8",
158
- "is-arrayish": "^0.2.1",
159
- "is-binary-path": "^2.1.0",
160
- "is-extglob": "^2.1.1",
161
- "is-fullwidth-code-point": "^3.0.0",
162
- "is-glob": "^4.0.3",
163
- "is-number": "^7.0.0",
164
- "is-plain-obj": "^2.1.0",
165
- "is-plain-object": "^5.0.0",
166
- "is-unicode-supported": "^0.1.0",
167
- "isexe": "^2.0.0",
168
- "jackspeak": "^2.3.6",
169
- "jest-worker": "^27.5.1",
170
- "jiti": "^1.21.0",
171
- "js-tokens": "^4.0.0",
172
- "js-yaml": "^4.1.0",
173
- "json-buffer": "^3.0.1",
174
- "json-parse-even-better-errors": "^2.3.1",
175
- "json-schema-traverse": "^1.0.0",
176
- "keyv": "^4.5.4",
177
- "kind-of": "^6.0.3",
178
- "known-css-properties": "^0.29.0",
179
- "lilconfig": "^3.1.1",
180
- "lines-and-columns": "^1.2.4",
181
- "loader-runner": "^4.3.0",
182
- "locate-path": "^6.0.0",
183
- "lodash.memoize": "^4.1.2",
184
- "lodash.truncate": "^4.4.2",
185
- "lodash.uniq": "^4.5.0",
186
- "log-symbols": "^4.1.0",
187
- "lru-cache": "^6.0.0",
188
- "magic-string": "^0.30.7",
189
- "mark.js": "^8.11.1",
190
- "mathml-tag-names": "^2.1.3",
191
- "mdn-data": "^2.0.30",
192
- "meow": "^13.2.0",
193
- "merge-stream": "^2.0.0",
194
- "merge2": "^1.4.1",
195
- "micromatch": "^4.0.5",
196
- "mime-db": "^1.52.0",
197
- "mime-types": "^2.1.35",
198
- "minimatch": "^5.0.1",
199
- "minipass": "^7.0.4",
200
- "minisearch": "^6.3.0",
201
- "mitt": "^3.0.1",
202
- "ms": "^2.1.3",
203
- "nanoid": "^3.3.7",
204
- "neo-async": "^2.6.2",
205
- "node-releases": "^2.0.14",
206
- "normalize-path": "^3.0.0",
207
- "normalize-range": "^0.1.2",
208
- "nth-check": "^2.1.1",
209
- "once": "^1.4.0",
210
- "p-limit": "^3.1.0",
211
- "p-locate": "^5.0.0",
212
- "parent-module": "^1.0.1",
213
- "parse-json": "^5.2.0",
214
- "path-exists": "^4.0.0",
215
- "path-key": "^3.1.1",
216
- "path-scurry": "^1.10.1",
217
- "path-type": "^4.0.0",
218
- "perfect-debounce": "^1.0.0",
219
- "picocolors": "^1.0.0",
220
- "picomatch": "^2.3.1",
221
- "postcss-calc": "^9.0.1",
222
- "postcss-colormin": "^6.0.2",
223
- "postcss-convert-values": "^6.0.2",
224
- "postcss-discard-comments": "^6.0.1",
225
- "postcss-discard-duplicates": "^6.0.1",
226
- "postcss-discard-empty": "^6.0.1",
227
- "postcss-discard-overridden": "^6.0.1",
228
- "postcss-media-query-parser": "^0.2.3",
229
- "postcss-merge-longhand": "^6.0.2",
230
- "postcss-merge-rules": "^6.0.3",
231
- "postcss-minify-font-values": "^6.0.1",
232
- "postcss-minify-gradients": "^6.0.1",
233
- "postcss-minify-params": "^6.0.2",
234
- "postcss-minify-selectors": "^6.0.2",
235
- "postcss-modules-extract-imports": "^3.0.0",
236
- "postcss-modules-local-by-default": "^4.0.4",
237
- "postcss-modules-scope": "^3.1.1",
238
- "postcss-modules-values": "^4.0.0",
239
- "postcss-normalize-charset": "^6.0.1",
240
- "postcss-normalize-display-values": "^6.0.1",
241
- "postcss-normalize-positions": "^6.0.1",
242
- "postcss-normalize-repeat-style": "^6.0.1",
243
- "postcss-normalize-string": "^6.0.1",
244
- "postcss-normalize-timing-functions": "^6.0.1",
245
- "postcss-normalize-unicode": "^6.0.2",
246
- "postcss-normalize-url": "^6.0.1",
247
- "postcss-normalize-whitespace": "^6.0.1",
248
- "postcss-ordered-values": "^6.0.1",
249
- "postcss-reduce-initial": "^6.0.2",
250
- "postcss-reduce-transforms": "^6.0.1",
251
- "postcss-resolve-nested-selector": "^0.1.1",
252
- "postcss-safe-parser": "^7.0.0",
253
- "postcss-scss": "^4.0.9",
254
- "postcss-selector-parser": "^6.0.15",
255
- "postcss-svgo": "^6.0.2",
256
- "postcss-unique-selectors": "^6.0.2",
257
- "postcss-value-parser": "^4.2.0",
258
- "preact": "^10.19.5",
259
- "punycode": "^2.3.1",
260
- "queue-microtask": "^1.2.3",
261
- "randombytes": "^2.1.0",
262
- "readdirp": "^3.6.0",
263
- "require-directory": "^2.1.1",
264
- "require-from-string": "^2.0.2",
265
- "resolve-from": "^4.0.0",
266
- "reusify": "^1.0.4",
267
- "rfdc": "^1.3.1",
268
- "rimraf": "^5.0.5",
269
- "rollup": "^4.12.0",
270
- "run-parallel": "^1.2.0",
271
- "safe-buffer": "^5.2.1",
272
- "schema-utils": "^3.3.0",
273
- "search-insights": "^2.13.0",
274
- "semver": "^7.6.0",
275
- "serialize-javascript": "^6.0.0",
276
- "shebang-command": "^2.0.0",
277
- "shebang-regex": "^3.0.0",
278
- "shiki": "^1.1.5",
279
- "signal-exit": "^4.1.0",
280
- "slash": "^3.0.0",
281
- "slice-ansi": "^4.0.0",
282
- "source-map": "^0.6.1",
283
- "source-map-js": "^1.0.2",
284
- "source-map-support": "^0.5.21",
285
- "speakingurl": "^14.0.1",
286
- "string-width": "^4.2.3",
287
- "string-width-cjs": "^4.2.3",
288
- "strip-ansi": "^7.1.0",
289
- "strip-ansi-cjs": "^6.0.1",
290
- "strip-json-comments": "^3.1.1",
291
- "stylehacks": "^6.0.2",
292
- "stylelint-config-recommended": "^14.0.0",
293
- "stylelint-config-recommended-scss": "^14.0.0",
294
- "stylelint-config-standard": "^36.0.0",
295
- "supports-color": "^8.1.1",
296
- "supports-hyperlinks": "^3.0.0",
297
- "svg-tags": "^1.0.0",
298
- "svgo": "^3.2.0",
299
- "tabbable": "^6.2.0",
300
- "table": "^6.8.1",
301
- "tapable": "^2.2.1",
302
- "terser": "^5.27.2",
303
- "terser-webpack-plugin": "^5.3.10",
304
- "to-regex-range": "^5.0.1",
305
- "undici-types": "^5.26.5",
306
- "update-browserslist-db": "^1.0.13",
307
- "uri-js": "^4.4.1",
308
- "util-deprecate": "^1.0.2",
309
- "vue": "^3.4.19",
310
- "watchpack": "^2.4.0",
311
- "webpack": "^5.90.3",
312
- "webpack-sources": "^3.2.3",
313
- "which": "^1.3.1",
314
- "workerpool": "^6.2.1",
315
- "wrap-ansi": "^7.0.0",
316
- "wrap-ansi-cjs": "^7.0.0",
317
- "wrappy": "^1.0.2",
318
- "write-file-atomic": "^5.0.1",
319
- "y18n": "^5.0.8",
320
- "yallist": "^4.0.0",
321
- "yargs": "^16.2.0",
322
- "yargs-parser": "^20.2.4",
323
- "yargs-unparser": "^2.0.0",
324
- "yocto-queue": "^0.1.0"
325
- }
326
- }
1
+ {
2
+ "name": "@guebbit/css-toolkit",
3
+ "type": "module",
4
+ "version": "1.1.0",
5
+ "description": "A repository containing helpful SCSS functions, mixins, and utilities for streamlining and standardizing CSS development",
6
+ "main": "vite.config.js",
7
+ "files": [
8
+ "index.scss",
9
+ "README.md",
10
+ "LICENSE",
11
+ "CHANGELOG"
12
+ ],
13
+ "scripts": {
14
+ "test": "mocha",
15
+ "lint": "stylelint \"**/*.scss\" --fix",
16
+ "docs:dev": "vitepress dev docs --port 8080",
17
+ "docs:build": "vitepress build docs",
18
+ "docs:serve": "vitepress serve docs --port 8080",
19
+ "prepublish": "npm run lint && npm run test && npm run docs:build",
20
+ "publish:public": "npm publish --access public"
21
+ },
22
+ "devDependencies": {
23
+ "@types/node": "^20.11.0",
24
+ "@vitejs/plugin-vue": "^5.0.3",
25
+ "autoprefixer": "^10.4.16",
26
+ "breakpoint-sass": "^3.0.0",
27
+ "chai": "^5.1.1",
28
+ "css-loader": "^6.9.0",
29
+ "cssnano": "^6.0.3",
30
+ "mocha": "^10.1.0",
31
+ "postcss": "^8.4.33",
32
+ "postcss-loader": "^7.3.4",
33
+ "postcss-prefix-selector": "^1.16.0",
34
+ "sass": "^1.69.7",
35
+ "style-loader": "^3.3.4",
36
+ "stylelint": "^16.1.0",
37
+ "stylelint-config-prettier-scss": "^1.0.0",
38
+ "stylelint-config-standard-scss": "^13.0.0",
39
+ "stylelint-scss": "^6.0.0",
40
+ "vite": "^5.0.11",
41
+ "vitepress": "^1.0.0-rc.36"
42
+ },
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/Guebbit/css-toolkit.git"
46
+ },
47
+ "keywords": [
48
+ "SCSS",
49
+ "Library"
50
+ ],
51
+ "author": "Guebbit <guerzoni.andrea91@gmail.com> (https://guebbit.com/)",
52
+ "license": "AGPL-3.0-or-later",
53
+ "bugs": {
54
+ "url": "https://github.com/Guebbit/css-toolkit/issues"
55
+ },
56
+ "homepage": "https://github.com/Guebbit/css-toolkit#readme"
57
+ }
package/.stylelintignore DELETED
@@ -1,2 +0,0 @@
1
- docs/workbench.scss
2
- docs/workbench.md
package/.stylelintrc.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "customSyntax": "postcss-scss",
3
- "plugins": [
4
- "stylelint-scss"
5
- ],
6
- "reporters": [
7
- {
8
- "formatter": "stylelint-mocha-formatter"
9
- }
10
- ],
11
- "extends": [
12
- "stylelint-config-standard-scss",
13
- "stylelint-config-prettier-scss"
14
- ],
15
- "rules": {
16
- "scss/no-global-function-names": null,
17
- "scss/double-slash-comment-empty-line-before": null,
18
- "scss/dollar-variable-empty-line-before": null,
19
- "no-descending-specificity": null,
20
- "scss/at-extend-no-missing-placeholder": null,
21
- "scss/percent-placeholder-pattern": null
22
- }
23
- }
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- 'postcss-prefix-selector': {
4
- prefix: ':not(:where(.vp-raw *))',
5
- includeFiles: [/vp-doc\.css/],
6
- transform(prefix, _selector) {
7
- const [selector, pseudo = ''] = _selector.split(/(:\S*)$/)
8
- return selector + prefix + pseudo
9
- }
10
- }
11
- }
12
- }
@@ -1,89 +0,0 @@
1
- import { defineConfig } from 'vitepress';
2
-
3
- export default defineConfig({
4
- lang: "en-US",
5
- title: "Guebbit SCSS Library",
6
- titleTemplate: ":title - base SCSS plus components",
7
- description: "Guebbit's personal SCSS Library (MIT license, free to use).",
8
- themeConfig: {
9
- logo: "/logotype.svg",
10
- siteTitle: "SCSS Library",
11
- search: {
12
- provider: 'local'
13
- },
14
- nav: [
15
- {
16
- text: 'Github',
17
- link: 'https://github.com/Guebbit/css-toolkit',
18
- },
19
- ],
20
- sidebar: [
21
- {
22
- text: 'Colors',
23
- collapsed: false,
24
- items: [
25
- {
26
- text: 'Bootstrap',
27
- link: '/colors/bootstrap.md',
28
- },
29
- {
30
- text: 'Brands',
31
- link: '/colors/brands.md',
32
- },
33
- {
34
- text: 'Gradients',
35
- link: '/colors/customs.md',
36
- }
37
- ]
38
- },
39
- {
40
- text: 'Functions',
41
- collapsed: false,
42
- items: [
43
- {
44
- text: 'Colors',
45
- link: '/functions/colors.md',
46
- },
47
- {
48
- text: 'Helpers',
49
- link: '/functions/helpers.md',
50
- }
51
- ]
52
- },
53
- {
54
- text: 'Mixins',
55
- collapsed: false,
56
- items: [
57
- {
58
- text: 'Build Aspect Ratio',
59
- link: '/mixins/build-aspect-ratio.md',
60
- },
61
- {
62
- text: 'Build Compatibility',
63
- link: '/mixins/build-compatibility.md',
64
- },
65
- {
66
- text: 'Build Scrollbar',
67
- link: '/mixins/build-scrollbar.md',
68
- },
69
- {
70
- text: 'Create Colors',
71
- link: '/mixins/create-colors.md',
72
- },
73
- {
74
- text: 'Create Size instruction',
75
- link: '/mixins/create-instruction.md',
76
- },
77
- {
78
- text: 'Create Margin helper',
79
- link: '/mixins/create-helper-margin.md',
80
- },
81
- {
82
- text: 'Create Padding helper',
83
- link: '/mixins/create-helper-padding.md',
84
- }
85
- ]
86
- },
87
- ]
88
- }
89
- })
@@ -1,12 +0,0 @@
1
- import DefaultTheme from "vitepress/theme";
2
-
3
- export default {
4
- ...DefaultTheme,
5
- /*
6
- Layout() {
7
- return h(DefaultTheme.Layout, null, {
8
- 'aside-outline-before': () => h(MyComponent)
9
- })
10
- }
11
- */
12
- }
@@ -1 +0,0 @@
1
- # TODO
@@ -1 +0,0 @@
1
- # TODO
@@ -1 +0,0 @@
1
- # TODO
@@ -1,66 +0,0 @@
1
- # Colors
2
-
3
- https://blog.logrocket.com/using-hsl-colors-css/#what-hsl
4
- https://blog.logrocket.com/building-color-palette-css/#60-30-10-design-rule
5
-
6
- ## color-brightness
7
-
8
- Gives %, less than 50 darker is better, less than 50, lighter.
9
-
10
- ```scss
11
- @if(color-brightness($color) > 50)
12
- ```
13
-
14
- ```scss
15
- @function color-brightness($color) {
16
- @return math.div(((red($color) * .299) + (green($color) * .587) + (blue($color) * .114)), 255 * 100%);
17
- }
18
- ```
19
-
20
- | Variable | Description | Accepted Values | Default |
21
- |:----------|:---------------|:----------------|:--------|
22
- | `$color` | Color to check | `color` | `none` |
23
-
24
-
25
-
26
- ## color-contrast
27
-
28
- Compares contrast of a given color to the light/dark arguments and returns whichever is most "contrasty"
29
-
30
- ```scss
31
- background-color: $background;
32
- color: color-contrast($background);
33
- ```
34
-
35
- ```scss
36
- @function color-contrast($color: #fff, $dark: #000, $light: #fff) {
37
- $color-brightness: color-brightness($color);
38
- $light-text-brightness: color-brightness($light);
39
- $dark-text-brightness: color-brightness($dark);
40
-
41
- @return if(abs($color-brightness - $light-text-brightness) > abs($color-brightness - $dark-text-brightness), $light, $dark);
42
- }
43
- ```
44
-
45
- ## color-hex2rgba
46
-
47
- Convert HEX color to RGBA color
48
-
49
- ```scss
50
- color: color-hex2rgba(#00ff00, 0.5);
51
- ```
52
-
53
- ## color-hex2rgbcore
54
-
55
- Compares contrast of a given color to the light/dark arguments and returns whichever is most "contrasty"
56
-
57
- ```scss
58
- --custom-var: color-hex2rgbcore(#00ff00);
59
- ```
60
-
61
-
62
- | Variable | Description | Accepted Values | Default |
63
- |:---------|:---------------------|:----------------|:--------|
64
- | `$color` | Color to check | `color` | `4px` |
65
- | `$dark` | Dark color to apply | `color` | `#000` |
66
- | `$light` | White color to apply | `color` | `#fff` |
@@ -1 +0,0 @@
1
- # TODO
@@ -1 +0,0 @@
1
- # TODO
package/docs/index.md DELETED
@@ -1 +0,0 @@
1
- <!-- @include: ../README.md -->