yummacss 3.0.2 → 3.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.
- package/README.md +66 -66
- package/dist/cli/commands/init.js +3 -5
- package/dist/cli/services/configLoader.js +4 -30
- package/package.json +6 -13
- package/src/_fonts.scss +16 -16
- package/src/abstracts/_breakpoints.scss +45 -45
- package/src/abstracts/_index.scss +5 -5
- package/src/abstracts/_theme.scss +21 -21
- package/src/abstracts/_variables.scss +83 -82
- package/src/abstracts/functions/_create-values.scss +16 -16
- package/src/abstracts/functions/_ignore-neutral.scss +7 -9
- package/src/abstracts/functions/_index.scss +2 -2
- package/src/abstracts/mixins/_create-colors.scss +90 -39
- package/src/abstracts/mixins/_create-utilities.scss +53 -39
- package/src/abstracts/mixins/_index.scss +2 -3
- package/src/reset/_stylecent.scss +231 -231
- package/src/utilities/_background.scss +95 -95
- package/src/utilities/_border.scss +313 -313
- package/src/utilities/_box-model.scss +290 -290
- package/src/utilities/_color.scss +85 -85
- package/src/utilities/_effect.scss +98 -98
- package/src/utilities/_flexbox.scss +213 -175
- package/src/utilities/_grid.scss +322 -322
- package/src/utilities/_index.scss +14 -14
- package/src/utilities/_interactivity.scss +304 -304
- package/src/utilities/_outline.scss +53 -53
- package/src/utilities/_positioning.scss +436 -436
- package/src/utilities/_svg.scss +27 -27
- package/src/utilities/_table.scss +35 -35
- package/src/utilities/_transform.scss +164 -164
- package/src/utilities/_typography.scss +278 -278
- package/src/utilities/maps/_index.scss +12 -12
- package/src/utilities/maps/box-model/_dimension.scss +16 -16
- package/src/utilities/maps/box-model/_height.scss +16 -16
- package/src/utilities/maps/box-model/_margin.scss +10 -10
- package/src/utilities/maps/box-model/_padding.scss +10 -10
- package/src/utilities/maps/box-model/_width.scss +16 -16
- package/src/utilities/maps/flexbox/_flex-basis.scss +12 -12
- package/src/utilities/maps/grid/_gap.scss +5 -5
- package/src/yummacss-core.scss +3 -3
- package/src/yummacss.scss +4 -4
- package/dist/cli/config/templates.js +0 -33
- package/src/abstracts/mixins/_extend-utilities.scss +0 -24
package/README.md
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
# [@yummacss](https://www.npmjs.com/package/yummacss)
|
|
2
|
-
|
|
3
|
-
A CSS framework for the web with abbreviated styles.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/yummacss)
|
|
6
|
-
[](https://www.npmjs.com/package/yummacss)
|
|
7
|
-
|
|
8
|
-
## Getting started
|
|
9
|
-
|
|
10
|
-
Yumma CSS is a CSS framework packed with a set of abbreviated utility classes for building faster and more maintainable UIs.
|
|
11
|
-
|
|
12
|
-
### Installing
|
|
13
|
-
|
|
14
|
-
A step by step series of examples that tell you how to get a development
|
|
15
|
-
environment running
|
|
16
|
-
|
|
17
|
-
Install Yumma CSS
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
npm i yummacss -D
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Initialize configuration
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
npx yummacss init
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Our [framework guides](https://www.yummacss.com/docs/installation#framework-guides) will teach you how to set up your configuration file.
|
|
30
|
-
|
|
31
|
-
## Development setup
|
|
32
|
-
|
|
33
|
-
The Yumma CSS CLI provides several commands to help you work with your Yumma CSS files.
|
|
34
|
-
|
|
35
|
-
> [!IMPORTANT]
|
|
36
|
-
> Make sure you have a `yumma.config.js` file set up before running these commands. If you haven’t, run `npx yummacss init` first.
|
|
37
|
-
|
|
38
|
-
### Building styles
|
|
39
|
-
|
|
40
|
-
The `build` command will compile your Yumma CSS files once.
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npx yummacss build
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Watching changes
|
|
47
|
-
|
|
48
|
-
The `watch` command will watch for changes in your Yumma CSS files and recompile them automatically.
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npx yummacss watch
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Documentation
|
|
55
|
-
|
|
56
|
-
Head over to [yummacss.com](https://www.yummacss.com) for the full documentation.
|
|
57
|
-
|
|
58
|
-
## Built with
|
|
59
|
-
|
|
60
|
-
- [
|
|
61
|
-
- [
|
|
62
|
-
- [typescript](https://www.npmjs.com/package/typescript)
|
|
63
|
-
|
|
64
|
-
## License
|
|
65
|
-
|
|
66
|
-
This project is licensed under the [MIT License](LICENSE)
|
|
1
|
+
# [@yummacss](https://www.npmjs.com/package/yummacss)
|
|
2
|
+
|
|
3
|
+
A CSS framework for the web with abbreviated styles.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/yummacss)
|
|
6
|
+
[](https://www.npmjs.com/package/yummacss)
|
|
7
|
+
|
|
8
|
+
## Getting started
|
|
9
|
+
|
|
10
|
+
Yumma CSS is a CSS framework packed with a set of abbreviated utility classes for building faster and more maintainable UIs.
|
|
11
|
+
|
|
12
|
+
### Installing
|
|
13
|
+
|
|
14
|
+
A step by step series of examples that tell you how to get a development
|
|
15
|
+
environment running
|
|
16
|
+
|
|
17
|
+
Install Yumma CSS
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npm i yummacss -D
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Initialize configuration
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
npx yummacss init
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Our [framework guides](https://www.yummacss.com/docs/installation#framework-guides) will teach you how to set up your configuration file.
|
|
30
|
+
|
|
31
|
+
## Development setup
|
|
32
|
+
|
|
33
|
+
The Yumma CSS CLI provides several commands to help you work with your Yumma CSS files.
|
|
34
|
+
|
|
35
|
+
> [!IMPORTANT]
|
|
36
|
+
> Make sure you have a `yumma.config.js` file set up before running these commands. If you haven’t, run `npx yummacss init` first.
|
|
37
|
+
|
|
38
|
+
### Building styles
|
|
39
|
+
|
|
40
|
+
The `build` command will compile your Yumma CSS files once.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx yummacss build
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Watching changes
|
|
47
|
+
|
|
48
|
+
The `watch` command will watch for changes in your Yumma CSS files and recompile them automatically.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx yummacss watch
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Documentation
|
|
55
|
+
|
|
56
|
+
Head over to [yummacss.com](https://www.yummacss.com) for the full documentation.
|
|
57
|
+
|
|
58
|
+
## Built with
|
|
59
|
+
|
|
60
|
+
- [sass-embedded](https://www.npmjs.com/package/sass-embedded)
|
|
61
|
+
- [lightningcss](https://www.npmjs.com/package/lightningcss)
|
|
62
|
+
- [typescript](https://www.npmjs.com/package/typescript)
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
This project is licensed under the [MIT License](LICENSE)
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { writeFileSync } from "fs";
|
|
2
|
-
import {
|
|
2
|
+
import { defaultConfig } from "../config/defaultConfig.js";
|
|
3
3
|
import { messages } from "../lib/cli-lang.js";
|
|
4
4
|
import { cli } from "../lib/cli-ui.js";
|
|
5
|
-
const DEFAULT_CONFIG_EXTENSION = ".js";
|
|
6
5
|
export function init() {
|
|
7
6
|
const init = cli.startSpinner(messages.init.start);
|
|
8
7
|
try {
|
|
9
|
-
const configContent =
|
|
10
|
-
|
|
11
|
-
writeFileSync(configFileName, configContent);
|
|
8
|
+
const configContent = `export default ${JSON.stringify(defaultConfig, null, 2)}`;
|
|
9
|
+
writeFileSync("yumma.config.js", configContent);
|
|
12
10
|
init.succeed(messages.init.success);
|
|
13
11
|
}
|
|
14
12
|
catch (error) {
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
import { join
|
|
1
|
+
import { join } from "path";
|
|
2
2
|
import { pathToFileURL } from "url";
|
|
3
|
-
import { existsSync } from "fs";
|
|
4
3
|
import { defaultConfig } from "../config/defaultConfig.js";
|
|
5
|
-
import { getSupportedExtensions } from "../config/templates.js";
|
|
6
|
-
const CONFIG_BASE = "yumma.config";
|
|
7
|
-
const SUPPORTED_EXTENSIONS = getSupportedExtensions();
|
|
8
|
-
const EXTENSION_LOADERS = {
|
|
9
|
-
".js": async (path) => {
|
|
10
|
-
const configUrl = pathToFileURL(path).href;
|
|
11
|
-
return (await import(configUrl)).default;
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
function findConfigFile(cwd) {
|
|
15
|
-
for (const ext of SUPPORTED_EXTENSIONS) {
|
|
16
|
-
const file = join(cwd, `${CONFIG_BASE}${ext}`);
|
|
17
|
-
if (existsSync(file))
|
|
18
|
-
return file;
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
4
|
export async function loadConfig() {
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
throw new Error(`No config file found. Supported: ${CONFIG_BASE}${SUPPORTED_EXTENSIONS.join(", ")}`);
|
|
27
|
-
}
|
|
28
|
-
const ext = extname(configPath);
|
|
29
|
-
const loader = EXTENSION_LOADERS[ext];
|
|
30
|
-
if (!loader) {
|
|
31
|
-
throw new Error(`Unsupported config file extension: ${ext}`);
|
|
32
|
-
}
|
|
33
|
-
const userConfig = await loader(configPath);
|
|
5
|
+
const configPath = join(process.cwd(), "yumma.config.js");
|
|
6
|
+
const configUrl = pathToFileURL(configPath).href;
|
|
7
|
+
const { default: userConfig } = (await import(configUrl));
|
|
34
8
|
return {
|
|
35
9
|
...defaultConfig,
|
|
36
10
|
...userConfig,
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yummacss",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "A CSS framework for the web with abbreviated styles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css-framework",
|
|
7
7
|
"css",
|
|
8
8
|
"design-system",
|
|
9
9
|
"framework",
|
|
10
|
-
"gulp",
|
|
11
10
|
"lightningcss",
|
|
12
11
|
"responsive-design",
|
|
13
12
|
"responsive",
|
|
14
13
|
"scss",
|
|
14
|
+
"typescript",
|
|
15
15
|
"yummacss"
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://yummacss.com",
|
|
@@ -35,12 +35,11 @@
|
|
|
35
35
|
"url": "git+https://github.com/yumma-lib/yumma-css.git"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build
|
|
39
|
-
"build:css": "gulp build",
|
|
40
|
-
"build": "pnpm build:css && pnpm build:cli",
|
|
38
|
+
"build": "tsc -p tsconfig.cli.json",
|
|
41
39
|
"dev": "tsc -p tsconfig.cli.json --watch",
|
|
42
40
|
"format:cli": "pnpx prettier --write cli",
|
|
43
|
-
"
|
|
41
|
+
"format": "pnpx prettier --write .",
|
|
42
|
+
"prepublishOnly": "pnpm build"
|
|
44
43
|
},
|
|
45
44
|
"dependencies": {
|
|
46
45
|
"chokidar": "^4.0.3",
|
|
@@ -54,12 +53,6 @@
|
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"@ianvs/prettier-plugin-sort-imports": "^4.5.1",
|
|
56
55
|
"@types/node": "^22.13.10",
|
|
57
|
-
"gulp-clean-css": "^4.3.0",
|
|
58
|
-
"gulp-debug": "^5.0.1",
|
|
59
|
-
"gulp-rename": "^2.0.0",
|
|
60
|
-
"gulp-sass": "^6.0.0",
|
|
61
|
-
"gulp": "^5.0.0",
|
|
62
|
-
"sass": "^1.85.1",
|
|
63
56
|
"typescript": "^5.8.2"
|
|
64
57
|
}
|
|
65
|
-
}
|
|
58
|
+
}
|
package/src/_fonts.scss
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@use "abstracts/variables" as vars;
|
|
2
|
-
|
|
3
|
-
.ff-c {
|
|
4
|
-
font-family: vars.$yma-font-charter;
|
|
5
|
-
font-weight: vars.$yma-font-weight;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ff-m {
|
|
9
|
-
font-family: vars.$yma-font-mono;
|
|
10
|
-
font-weight: vars.$yma-font-weight;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ff-s {
|
|
14
|
-
font-family: vars.$yma-font-system;
|
|
15
|
-
font-weight: vars.$yma-font-weight;
|
|
16
|
-
}
|
|
1
|
+
@use "abstracts/variables" as vars;
|
|
2
|
+
|
|
3
|
+
.ff-c {
|
|
4
|
+
font-family: vars.$yma-font-charter;
|
|
5
|
+
font-weight: vars.$yma-font-weight;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ff-m {
|
|
9
|
+
font-family: vars.$yma-font-mono;
|
|
10
|
+
font-weight: vars.$yma-font-weight;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ff-s {
|
|
14
|
+
font-family: vars.$yma-font-system;
|
|
15
|
+
font-weight: vars.$yma-font-weight;
|
|
16
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
$yma-breakpoints: (
|
|
4
|
-
"sm": 40rem,
|
|
5
|
-
"md": 48rem,
|
|
6
|
-
"lg": 64rem,
|
|
7
|
-
"xl": 80rem,
|
|
8
|
-
"xxl": 96rem,
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
@mixin sm {
|
|
12
|
-
@media (min-width: map.get($yma-breakpoints, "sm")) {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin md {
|
|
18
|
-
@media (min-width: map.get($yma-breakpoints, "md")) {
|
|
19
|
-
@content;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@mixin lg {
|
|
24
|
-
@media (min-width: map.get($yma-breakpoints, "lg")) {
|
|
25
|
-
@content;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin xl {
|
|
30
|
-
@media (min-width: map.get($yma-breakpoints, "xl")) {
|
|
31
|
-
@content;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin xxl {
|
|
36
|
-
@media (min-width: map.get($yma-breakpoints, "xxl")) {
|
|
37
|
-
@content;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin breakpoint($bp) {
|
|
42
|
-
@media (min-width: $bp) {
|
|
43
|
-
@content;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
$yma-breakpoints: (
|
|
4
|
+
"sm": 40rem,
|
|
5
|
+
"md": 48rem,
|
|
6
|
+
"lg": 64rem,
|
|
7
|
+
"xl": 80rem,
|
|
8
|
+
"xxl": 96rem,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
@mixin sm {
|
|
12
|
+
@media (min-width: map.get($yma-breakpoints, "sm")) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin md {
|
|
18
|
+
@media (min-width: map.get($yma-breakpoints, "md")) {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin lg {
|
|
24
|
+
@media (min-width: map.get($yma-breakpoints, "lg")) {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin xl {
|
|
30
|
+
@media (min-width: map.get($yma-breakpoints, "xl")) {
|
|
31
|
+
@content;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin xxl {
|
|
36
|
+
@media (min-width: map.get($yma-breakpoints, "xxl")) {
|
|
37
|
+
@content;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin breakpoint($bp) {
|
|
42
|
+
@media (min-width: $bp) {
|
|
43
|
+
@content;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@forward "functions";
|
|
2
|
-
@forward "variables";
|
|
3
|
-
@forward "breakpoints";
|
|
4
|
-
@forward "mixins";
|
|
5
|
-
@forward "theme";
|
|
1
|
+
@forward "functions";
|
|
2
|
+
@forward "variables";
|
|
3
|
+
@forward "breakpoints";
|
|
4
|
+
@forward "mixins";
|
|
5
|
+
@forward "theme";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "variables" as vars;
|
|
3
|
-
|
|
4
|
-
$yma-theme: (
|
|
5
|
-
"red": vars.$yma-color-red,
|
|
6
|
-
"orange": vars.$yma-color-orange,
|
|
7
|
-
"yellow": vars.$yma-color-yellow,
|
|
8
|
-
"green": vars.$yma-color-green,
|
|
9
|
-
"teal": vars.$yma-color-teal,
|
|
10
|
-
"cyan": vars.$yma-color-cyan,
|
|
11
|
-
"blue": vars.$yma-color-blue,
|
|
12
|
-
"indigo": vars.$yma-color-indigo,
|
|
13
|
-
"violet": vars.$yma-color-violet,
|
|
14
|
-
"pink": vars.$yma-color-pink,
|
|
15
|
-
"silver": vars.$yma-color-silver,
|
|
16
|
-
"gray": vars.$yma-color-gray,
|
|
17
|
-
"lead": vars.$yma-color-lead,
|
|
18
|
-
"black": vars.$yma-color-black,
|
|
19
|
-
"white": vars.$yma-color-white,
|
|
20
|
-
"transparent": vars.$yma-color-transparent,
|
|
21
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "variables" as vars;
|
|
3
|
+
|
|
4
|
+
$yma-theme: (
|
|
5
|
+
"red": vars.$yma-color-red,
|
|
6
|
+
"orange": vars.$yma-color-orange,
|
|
7
|
+
"yellow": vars.$yma-color-yellow,
|
|
8
|
+
"green": vars.$yma-color-green,
|
|
9
|
+
"teal": vars.$yma-color-teal,
|
|
10
|
+
"cyan": vars.$yma-color-cyan,
|
|
11
|
+
"blue": vars.$yma-color-blue,
|
|
12
|
+
"indigo": vars.$yma-color-indigo,
|
|
13
|
+
"violet": vars.$yma-color-violet,
|
|
14
|
+
"pink": vars.$yma-color-pink,
|
|
15
|
+
"silver": vars.$yma-color-silver,
|
|
16
|
+
"gray": vars.$yma-color-gray,
|
|
17
|
+
"lead": vars.$yma-color-lead,
|
|
18
|
+
"black": vars.$yma-color-black,
|
|
19
|
+
"white": vars.$yma-color-white,
|
|
20
|
+
"transparent": vars.$yma-color-transparent,
|
|
21
|
+
);
|
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
// color
|
|
2
|
-
$yma-color-red:
|
|
3
|
-
$yma-color-orange:
|
|
4
|
-
$yma-color-yellow:
|
|
5
|
-
$yma-color-green:
|
|
6
|
-
$yma-color-teal:
|
|
7
|
-
$yma-color-cyan:
|
|
8
|
-
$yma-color-blue:
|
|
9
|
-
$yma-color-indigo:
|
|
10
|
-
$yma-color-violet:
|
|
11
|
-
$yma-color-pink:
|
|
12
|
-
$yma-color-lead:
|
|
13
|
-
$yma-color-gray:
|
|
14
|
-
$yma-color-silver:
|
|
15
|
-
$yma-color-black: black !default;
|
|
16
|
-
$yma-color-white: white !default;
|
|
17
|
-
$yma-color-transparent: transparent !default;
|
|
18
|
-
|
|
19
|
-
// border
|
|
20
|
-
$yma-border: 1px !default;
|
|
21
|
-
$yma-border-radius: 0.25rem !default;
|
|
22
|
-
$yma-border-spacing: 0.25rem !default;
|
|
23
|
-
|
|
24
|
-
// box model
|
|
25
|
-
$yma-dimension: 0.25rem !default;
|
|
26
|
-
$yma-height: 0.25rem !default;
|
|
27
|
-
$yma-width: 0.25rem !default;
|
|
28
|
-
$yma-padding: 0.25rem !default;
|
|
29
|
-
$yma-margin: 0.25rem !default;
|
|
30
|
-
$yma-spacing: 0.25rem !default;
|
|
31
|
-
|
|
32
|
-
// effect
|
|
33
|
-
$yma-backdrop-blur: 4px !default;
|
|
34
|
-
|
|
35
|
-
$yma-blur: 4px !default;
|
|
36
|
-
|
|
37
|
-
$yma-box-shadow-lg: 1px 3px 5px 1px
|
|
38
|
-
$yma-box-shadow-md: 1px 3px 5px -1px
|
|
39
|
-
$yma-box-shadow-sm: 1px 3px 5px -2px
|
|
40
|
-
$yma-box-shadow-xl: 1px 3px 5px 2px
|
|
41
|
-
$yma-box-shadow-xs: 1px 3px 5px -3px
|
|
42
|
-
|
|
43
|
-
$yma-grayscale: 10% !default;
|
|
44
|
-
|
|
45
|
-
// flexbox
|
|
46
|
-
$yma-flex-basis: 0.25rem !default;
|
|
47
|
-
|
|
48
|
-
// grid
|
|
49
|
-
$yma-gap: 0.25rem !default;
|
|
50
|
-
$yma-column-gap: 0.25rem !default;
|
|
51
|
-
$yma-row-gap: 0.25rem !default;
|
|
52
|
-
|
|
53
|
-
// outline
|
|
54
|
-
$yma-outline-offset: 1px !default;
|
|
55
|
-
$yma-outline-width: 1px !default;
|
|
56
|
-
|
|
57
|
-
// positioning
|
|
58
|
-
$yma-bottom-left-top-right: 0.25rem !default;
|
|
59
|
-
|
|
60
|
-
// text
|
|
61
|
-
$yma-decoration-thickness: 1px !default;
|
|
62
|
-
|
|
63
|
-
// font
|
|
64
|
-
$yma-font-size-xs: 0.75rem !default;
|
|
65
|
-
$yma-font-size-sm: 0.875rem !default;
|
|
66
|
-
$yma-font-size-md: 1rem !default;
|
|
67
|
-
$yma-font-size-lg: 1.125rem !default;
|
|
68
|
-
$yma-font-size-xl: 1.25rem !default;
|
|
69
|
-
$yma-font-size-2xl: 1.5rem !default;
|
|
70
|
-
$yma-font-size-3xl: 1.875rem !default;
|
|
71
|
-
$yma-font-size-4xl: 2.25rem !default;
|
|
72
|
-
$yma-font-size-5xl: 3rem !default;
|
|
73
|
-
$yma-font-size-6xl: 3.75rem !default;
|
|
74
|
-
$yma-font-size-7xl: 4.5rem !default;
|
|
75
|
-
$yma-font-size-8xl: 6rem !default;
|
|
76
|
-
$yma-font-size-9xl: 8rem !default;
|
|
77
|
-
|
|
78
|
-
$yma-font-weight: 500 !default;
|
|
79
|
-
|
|
80
|
-
$yma-font-charter:
|
|
81
|
-
|
|
82
|
-
$yma-font-
|
|
1
|
+
// color
|
|
2
|
+
$yma-color-red: #d73d3d !default;
|
|
3
|
+
$yma-color-orange: #e06814 !default;
|
|
4
|
+
$yma-color-yellow: #d3a107 !default;
|
|
5
|
+
$yma-color-green: #1fb155 !default;
|
|
6
|
+
$yma-color-teal: #12a695 !default;
|
|
7
|
+
$yma-color-cyan: #05a4bf !default;
|
|
8
|
+
$yma-color-blue: #3575dd !default;
|
|
9
|
+
$yma-color-indigo: #595cd9 !default;
|
|
10
|
+
$yma-color-violet: #7d53dd !default;
|
|
11
|
+
$yma-color-pink: #d4418a !default;
|
|
12
|
+
$yma-color-lead: #3f3f4e !default;
|
|
13
|
+
$yma-color-gray: #606773 !default;
|
|
14
|
+
$yma-color-silver: #bfc2c7 !default;
|
|
15
|
+
$yma-color-black: black !default;
|
|
16
|
+
$yma-color-white: white !default;
|
|
17
|
+
$yma-color-transparent: transparent !default;
|
|
18
|
+
|
|
19
|
+
// border
|
|
20
|
+
$yma-border: 1px !default;
|
|
21
|
+
$yma-border-radius: 0.25rem !default;
|
|
22
|
+
$yma-border-spacing: 0.25rem !default;
|
|
23
|
+
|
|
24
|
+
// box model
|
|
25
|
+
$yma-dimension: 0.25rem !default;
|
|
26
|
+
$yma-height: 0.25rem !default;
|
|
27
|
+
$yma-width: 0.25rem !default;
|
|
28
|
+
$yma-padding: 0.25rem !default;
|
|
29
|
+
$yma-margin: 0.25rem !default;
|
|
30
|
+
$yma-spacing: 0.25rem !default;
|
|
31
|
+
|
|
32
|
+
// effect
|
|
33
|
+
$yma-backdrop-blur: 4px !default;
|
|
34
|
+
|
|
35
|
+
$yma-blur: 4px !default;
|
|
36
|
+
|
|
37
|
+
$yma-box-shadow-lg: 1px 3px 5px 1px #0000001a !default;
|
|
38
|
+
$yma-box-shadow-md: 1px 3px 5px -1px #0000001a !default;
|
|
39
|
+
$yma-box-shadow-sm: 1px 3px 5px -2px #0000001a !default;
|
|
40
|
+
$yma-box-shadow-xl: 1px 3px 5px 2px #0000001a !default;
|
|
41
|
+
$yma-box-shadow-xs: 1px 3px 5px -3px #0000001a !default;
|
|
42
|
+
|
|
43
|
+
$yma-grayscale: 10% !default;
|
|
44
|
+
|
|
45
|
+
// flexbox
|
|
46
|
+
$yma-flex-basis: 0.25rem !default;
|
|
47
|
+
|
|
48
|
+
// grid
|
|
49
|
+
$yma-gap: 0.25rem !default;
|
|
50
|
+
$yma-column-gap: 0.25rem !default;
|
|
51
|
+
$yma-row-gap: 0.25rem !default;
|
|
52
|
+
|
|
53
|
+
// outline
|
|
54
|
+
$yma-outline-offset: 1px !default;
|
|
55
|
+
$yma-outline-width: 1px !default;
|
|
56
|
+
|
|
57
|
+
// positioning
|
|
58
|
+
$yma-bottom-left-top-right: 0.25rem !default;
|
|
59
|
+
|
|
60
|
+
// text
|
|
61
|
+
$yma-decoration-thickness: 1px !default;
|
|
62
|
+
|
|
63
|
+
// font
|
|
64
|
+
$yma-font-size-xs: 0.75rem !default;
|
|
65
|
+
$yma-font-size-sm: 0.875rem !default;
|
|
66
|
+
$yma-font-size-md: 1rem !default;
|
|
67
|
+
$yma-font-size-lg: 1.125rem !default;
|
|
68
|
+
$yma-font-size-xl: 1.25rem !default;
|
|
69
|
+
$yma-font-size-2xl: 1.5rem !default;
|
|
70
|
+
$yma-font-size-3xl: 1.875rem !default;
|
|
71
|
+
$yma-font-size-4xl: 2.25rem !default;
|
|
72
|
+
$yma-font-size-5xl: 3rem !default;
|
|
73
|
+
$yma-font-size-6xl: 3.75rem !default;
|
|
74
|
+
$yma-font-size-7xl: 4.5rem !default;
|
|
75
|
+
$yma-font-size-8xl: 6rem !default;
|
|
76
|
+
$yma-font-size-9xl: 8rem !default;
|
|
77
|
+
|
|
78
|
+
$yma-font-weight: 500 !default;
|
|
79
|
+
|
|
80
|
+
$yma-font-charter:
|
|
81
|
+
Charter, "Bitstream Charter", "Sitka Text", Cambria, serif !default;
|
|
82
|
+
$yma-font-mono: "Nimbus Mono PS", "Courier New", monospace !default;
|
|
83
|
+
$yma-font-system: system-ui, sans-serif !default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
@function create-values($variable, $min: 0, $max: 100) {
|
|
4
|
-
$values: ();
|
|
5
|
-
|
|
6
|
-
@for $i from $min through $max {
|
|
7
|
-
$values: map.merge(
|
|
8
|
-
$values,
|
|
9
|
-
(
|
|
10
|
-
"#{$i}": $variable * $i,
|
|
11
|
-
)
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@return $values;
|
|
16
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@function create-values($variable, $min: 0, $max: 100) {
|
|
4
|
+
$values: ();
|
|
5
|
+
|
|
6
|
+
@for $i from $min through $max {
|
|
7
|
+
$values: map.merge(
|
|
8
|
+
$values,
|
|
9
|
+
(
|
|
10
|
+
"#{$i}": $variable * $i,
|
|
11
|
+
)
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@return $values;
|
|
16
|
+
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
@use "../theme" as *;
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
and $v != map.get($yma-theme, "transparent");
|
|
9
|
-
}
|
|
1
|
+
@use "../theme" as *;
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
|
|
4
|
+
@function ignore-neutral($v, $yma-theme) {
|
|
5
|
+
@return $v != map.get($yma-theme, "black") and $v !=
|
|
6
|
+
map.get($yma-theme, "white") and $v != map.get($yma-theme, "transparent");
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward "ignore-neutral";
|
|
2
|
-
@forward "create-values";
|
|
1
|
+
@forward "ignore-neutral";
|
|
2
|
+
@forward "create-values";
|