├── .DS_Store
├── .gitignore
├── LICENSE
├── README.md
├── dist
├── consts
│ ├── defaultSettings.d.ts
│ ├── defaultSettings.js
│ ├── index.d.ts
│ └── index.js
├── index.d.ts
├── index.js
├── plugin
│ ├── FluidTypographyPlugin.d.ts
│ ├── FluidTypographyPlugin.js
│ ├── index.d.ts
│ └── index.js
├── types
│ ├── PluginConfig.d.ts
│ ├── PluginConfig.js
│ ├── index.d.ts
│ └── index.js
└── utils
│ ├── generateClampValues.d.ts
│ ├── generateClampValues.js
│ ├── index.d.ts
│ └── index.js
├── package.json
├── src
├── consts
│ ├── defaultSettings.ts
│ └── index.ts
├── index.ts
├── plugin
│ ├── FluidTypographyPlugin.ts
│ └── index.ts
├── types
│ ├── PluginConfig.ts
│ └── index.ts
└── utils
│ ├── generateClampValues.ts
│ └── index.ts
├── tsconfig.json
└── yarn.lock
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prototypdigital/tailwindcss-fluid-typography/b58572c47f721b365346d95de4091f0602fe69e4/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/*
2 | *.tgz
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 PROTOTYP
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.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Table of Contents
2 |
3 | - [Introduction](#introduction)
4 | - [Installation](#installation)
5 | - [Usage](#usage)
6 | - [Contributing](#contributing)
7 |
8 | # Introduction
9 |
10 | A fluid typography plugin for Tailwind CSS. This plugin generates a set of fluid typography utilities based on your configuration. It uses the `clamp()` CSS function to create a fluid typography scale that is responsive by default.
11 |
12 | ## How is it different than other plugins?
13 |
14 | There are two major similar plugins:
15 |
16 | 1. https://github.com/davidhellmann/tailwindcss-fluid-type
17 | 2. https://github.com/craigrileyuk/tailwind-fluid-typography
18 |
19 | Both of these plugins are based on automatically scaling via multipliers which means it's hard to manually set each font size or break the scale if the design requires so.
20 |
21 | This plugin allows you to set each `font-size`, `line-height`, and `letter-spacing` values individually. It does not give you a predefined set of sizes or sizes that follow a type scale, you have to manually define them yourself, but the plugin will scale them for you.
22 |
23 | # Installation
24 |
25 | ```js
26 | npm i tailwindcss-fluid-typography
27 | ```
28 |
29 | or
30 |
31 | ```js
32 | yarn add tailwindcss-fluid-typography
33 | ```
34 |
35 | # Usage
36 |
37 | Reference your static font sizes from Tailwind config and copy those. Then, add another value in the array to scale between the two values.
38 |
39 | You should check your design and set each type scale size upper and lower end based on the desktop and mobile design sizes. The plugin will automatically resize between those two sizes within the chosen screen sizes.
40 |
41 | The default screen sizes are `30rem` (480px) and `80rem` (1280px)
42 |
43 | Specify min and max values in an array, for example:
44 |
45 | ```js
46 | fontSize: [1.125, 1.5],
47 | lineHeight: [1.75, 2],
48 | ```
49 |
50 | The plugin will scale between `font-size: 1.125rem` and `font-size: 1.5rem` and `line-height: 1.75rem` and `line-height: 2rem`, within the selected screen sizes.
51 |
52 | ## Example config
53 |
54 | ```js
55 | module.exports = {
56 | plugins: [
57 | require("tailwindcss-fluid-typography")({
58 | minScreenWidth: 30, // width in rem
59 | maxScreenWidth: 80, // width in rem
60 | unit: "rem",
61 | suffix: "-fluid",
62 | prefix: "",
63 | values: [
64 | {
65 | key: "xs",
66 | fontSize: 0.75,
67 | lineHeight: 1,
68 | },
69 | {
70 | key: "sm",
71 | fontSize: 0.875,
72 | lineHeight: 1.25,
73 | },
74 | {
75 | key: "base",
76 | fontSize: [0.875, 1],
77 | lineHeight: [1.25, 1.5],
78 | },
79 | {
80 | key: "lg",
81 | fontSize: [1, 1.125],
82 | lineHeight: [1.5, 1.75],
83 | },
84 | {
85 | key: "xl",
86 | fontSize: [1.125, 1.25],
87 | lineHeight: [1.5, 1.75],
88 | },
89 | {
90 | key: "2xl",
91 | fontSize: [1.25, 1.5],
92 | lineHeight: [1.75, 2],
93 | },
94 | {
95 | key: "3xl",
96 | fontSize: [1.5, 1.875],
97 | lineHeight: [2, 2.25],
98 | },
99 | {
100 | key: "4xl",
101 | fontSize: [1.875, 2.25],
102 | lineHeight: [2.25, 2.5],
103 | },
104 | {
105 | key: "5xl",
106 | fontSize: [2.25, 3],
107 | lineHeight: [2.5, 3.5],
108 | },
109 | {
110 | key: "6xl",
111 | fontSize: [3, 3.75],
112 | lineHeight: [3.5, 4.5],
113 | },
114 | {
115 | key: "7xl",
116 | fontSize: [3.75, 4.5],
117 | lineHeight: [4.5, 5],
118 | },
119 | {
120 | key: "8xl",
121 | fontSize: [4.5, 5.5],
122 | lineHeight: [5, 5.5],
123 | },
124 | {
125 | key: "9xl",
126 | fontSize: [5.5, 6.25],
127 | lineHeight: [5.5, 6.25],
128 | },
129 | ],
130 | }),
131 | ],
132 | };
133 | ```
134 |
135 | Then you can use the generated classes in your HTML, just by appending `-fluid` to the existing font sizes. For example:
136 |
137 | ```html
138 |
Hello World
139 | ```
140 |
141 | Or you can pass a custom suffix or prefix in config to alter the generated class names:
142 |
143 | ```js
144 | suffix: "",
145 | prefix: "fluid-",
146 | ```
147 |
148 | to get
149 |
150 | ```html
151 | Hello World
152 | ```
153 |
154 | # Letter spacing
155 |
156 | You can also control tracking values. You can do that by adding `letterSpacing` values to your config.
157 |
158 | ```js
159 | {
160 | key: '3xl',
161 | fontSize: [2.125, 5],
162 | lineHeight: [2.625, 5.5],
163 | letterSpacing: [-0.003125, -0.00625],
164 | },
165 | ```
166 |
167 | You can pass an array with two values to scale between them, or just a number to set a fixed value in case you need so.
168 |
169 | ```js
170 | {
171 | key: '3xl',
172 | fontSize: [2.125, 5],
173 | lineHeight: [2.625, 5.5],
174 | letterSpacing: -0.03125,
175 | },
176 | ```
177 |
178 | ## Contributing
179 |
180 | Feel free to submit PR for review or suggest changes in GitHub issues.
181 |
--------------------------------------------------------------------------------
/dist/consts/defaultSettings.d.ts:
--------------------------------------------------------------------------------
1 | import { PluginConfig } from "../types/PluginConfig";
2 | export declare const defaultSettings: PluginConfig;
3 |
--------------------------------------------------------------------------------
/dist/consts/defaultSettings.js:
--------------------------------------------------------------------------------
1 | export const defaultSettings = {
2 | values: [
3 | {
4 | key: "xs",
5 | fontSize: [0.75, 0.75],
6 | lineHeight: [0.75, 1],
7 | },
8 | {
9 | key: "xs",
10 | fontSize: [0.5, 0.75],
11 | lineHeight: [0.75, 1],
12 | },
13 | {
14 | key: "sm",
15 | fontSize: [0.75, 1],
16 | lineHeight: [1.25, 1.5],
17 | },
18 | {
19 | key: "base",
20 | fontSize: [0.875, 1],
21 | lineHeight: [1, 1.25],
22 | },
23 | {
24 | key: "lg",
25 | fontSize: [1.125, 1.5],
26 | lineHeight: [1.75, 2],
27 | },
28 | {
29 | key: "2xl",
30 | fontSize: [1.5, 1.875],
31 | lineHeight: [2, 2.25],
32 | },
33 | {
34 | key: "3xl",
35 | fontSize: [1.875, 2.25],
36 | lineHeight: [2.25, 2.5],
37 | },
38 | {
39 | key: "4xl",
40 | fontSize: [2.25, 3],
41 | lineHeight: [2.5, 1],
42 | },
43 | {
44 | key: "5xl",
45 | fontSize: [3, 3.75],
46 | lineHeight: 1,
47 | },
48 | {
49 | key: "6xl",
50 | fontSize: [3.75, 4.5],
51 | lineHeight: 1,
52 | },
53 | {
54 | key: "7xl",
55 | fontSize: [4.5, 6],
56 | lineHeight: 1,
57 | },
58 | {
59 | key: "8xl",
60 | fontSize: [6, 8],
61 | lineHeight: 1,
62 | },
63 | {
64 | key: "9xl",
65 | fontSize: [6, 8],
66 | lineHeight: 1,
67 | },
68 | ],
69 | };
70 |
--------------------------------------------------------------------------------
/dist/consts/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./defaultSettings";
2 |
--------------------------------------------------------------------------------
/dist/consts/index.js:
--------------------------------------------------------------------------------
1 | export * from "./defaultSettings";
2 |
--------------------------------------------------------------------------------
/dist/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./consts";
2 | import { FluidTypographyPlugin } from "./plugin";
3 | export * from "./types";
4 | export * from "./utils";
5 | export default FluidTypographyPlugin;
6 |
--------------------------------------------------------------------------------
/dist/index.js:
--------------------------------------------------------------------------------
1 | export * from "./consts";
2 | import { FluidTypographyPlugin } from "./plugin";
3 | export * from "./types";
4 | export * from "./utils";
5 | export default FluidTypographyPlugin;
6 |
--------------------------------------------------------------------------------
/dist/plugin/FluidTypographyPlugin.d.ts:
--------------------------------------------------------------------------------
1 | import { PluginConfig } from "../types/PluginConfig";
2 | export declare const FluidTypographyPlugin: {
3 | (options: PluginConfig): {
4 | handler: import("tailwindcss/types/config").PluginCreator;
5 | config?: Partial | undefined;
6 | };
7 | __isOptionsFunction: true;
8 | };
9 |
--------------------------------------------------------------------------------
/dist/plugin/FluidTypographyPlugin.js:
--------------------------------------------------------------------------------
1 | import * as plugin from "tailwindcss/plugin";
2 | import { defaultSettings } from "../consts/defaultSettings";
3 | import { generateClampValues } from "../utils/generateClampValues";
4 | export const FluidTypographyPlugin = plugin.withOptions(function (customOptions) {
5 | return function ({ addUtilities, e }) {
6 | const { minScreenWidth = 30, maxScreenWidth = 80, unit = "rem", prefix = "", suffix = "-fluid", values, } = Object.assign(Object.assign({}, defaultSettings), customOptions);
7 | const generatedUtilities = values.map(({ fontSize, lineHeight, letterSpacing, key }) => {
8 | const classes = {};
9 | if (fontSize) {
10 | const fluidFontSize = generateClampValues(fontSize, minScreenWidth, maxScreenWidth, unit);
11 | classes.fontSize = fluidFontSize;
12 | }
13 | if (lineHeight) {
14 | const moltenLineHeight = generateClampValues(lineHeight, minScreenWidth, maxScreenWidth, unit);
15 | classes.lineHeight = moltenLineHeight;
16 | }
17 | if (letterSpacing) {
18 | const rubberyTracking = generateClampValues(letterSpacing, minScreenWidth, maxScreenWidth, unit);
19 | classes.letterSpacing = rubberyTracking;
20 | }
21 | return {
22 | [`.${e(`${prefix}text-${key}${suffix}`)}`]: classes,
23 | };
24 | });
25 | addUtilities(generatedUtilities);
26 | };
27 | });
28 |
--------------------------------------------------------------------------------
/dist/plugin/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./FluidTypographyPlugin";
2 |
--------------------------------------------------------------------------------
/dist/plugin/index.js:
--------------------------------------------------------------------------------
1 | export * from "./FluidTypographyPlugin";
2 |
--------------------------------------------------------------------------------
/dist/types/PluginConfig.d.ts:
--------------------------------------------------------------------------------
1 | export type PluginConfig = {
2 | minScreenWidth?: number;
3 | maxScreenWidth?: number;
4 | unit?: string;
5 | suffix?: string;
6 | prefix?: string;
7 | values: {
8 | key: string;
9 | fontSize: [number, number] | number;
10 | lineHeight?: [number, number] | number;
11 | letterSpacing?: [number, number] | number;
12 | }[];
13 | };
14 |
--------------------------------------------------------------------------------
/dist/types/PluginConfig.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/dist/types/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./PluginConfig";
2 |
--------------------------------------------------------------------------------
/dist/types/index.js:
--------------------------------------------------------------------------------
1 | export * from "./PluginConfig";
2 |
--------------------------------------------------------------------------------
/dist/utils/generateClampValues.d.ts:
--------------------------------------------------------------------------------
1 | export declare function generateClampValues(value: [number, number] | [number] | number, minScreenWidth: number, maxScreenWidth: number, unit: string): string | null;
2 |
--------------------------------------------------------------------------------
/dist/utils/generateClampValues.js:
--------------------------------------------------------------------------------
1 | export function generateClampValues(value, minScreenWidth, maxScreenWidth, unit) {
2 | /** If it's a flat value and not an array, it shouldn't be scaled. */
3 | if (typeof value === "number") {
4 | return `${value}${unit}`;
5 | }
6 | /** If it's array, it needs to be scaled between two values. */
7 | /** Users can pass [50px] instead of 50px by mistake when removing one of the values. Treat this the same. */
8 | if (value.length === 1) {
9 | return `${value}${unit}`;
10 | }
11 | /** Don't try to scale between more than 2 values. */
12 | if (value.length !== 2) {
13 | return null;
14 | }
15 | let [minValue, maxValue] = value;
16 | // If user passes numbers in wrong order, swap them. Usually happens with negative tracking.
17 | if (minValue > maxValue) {
18 | [minValue, maxValue] = [maxValue, minValue];
19 | }
20 | let minValueWithUnit = `${minValue}${unit}`;
21 | let maxValueWithUnit = `${maxValue}${unit}`;
22 | return `clamp(${minValueWithUnit}, calc(${minValueWithUnit} + (${maxValue} - ${minValue}) * ((100vw - ${minScreenWidth}${unit}) / (${maxScreenWidth} - ${minScreenWidth}))), ${maxValueWithUnit})`;
23 | }
24 |
--------------------------------------------------------------------------------
/dist/utils/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./generateClampValues";
2 |
--------------------------------------------------------------------------------
/dist/utils/index.js:
--------------------------------------------------------------------------------
1 | export * from "./generateClampValues";
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tailwindcss-fluid-typography",
3 | "version": "1.0.4",
4 | "description": "A fluid typography plugin for Tailwind CSS with support for font-size, line-height and letter-spacing properties.",
5 | "main": "dist/index.js",
6 | "types": "dist/index.d.ts",
7 | "type": "module",
8 | "files": [
9 | "dist",
10 | "README.md",
11 | "LICENSE"
12 | ],
13 | "exports": {
14 | ".": {
15 | "import": "./dist/index.js",
16 | "require": "./dist/index.js"
17 | }
18 | },
19 | "scripts": {
20 | "prepack": "tsc"
21 | },
22 | "repository": {
23 | "type": "git",
24 | "url": "git+https://github.com/prototypdigital/tailwindcss-fluid-typography.git"
25 | },
26 | "publishConfig": {
27 | "access": "public"
28 | },
29 | "keywords": [
30 | "tailwind",
31 | "tailwindcss",
32 | "fluid",
33 | "typography",
34 | "fluid-typo",
35 | "tracking",
36 | "leading"
37 | ],
38 | "author": "Sebastijan Dumančić ",
39 | "license": "MIT",
40 | "bugs": {
41 | "url": "https://github.com/prototypdigital/tailwindcss-fluid-typography/issues"
42 | },
43 | "homepage": "https://github.com/prototypdigital/tailwindcss-fluid-typography#readme",
44 | "devDependencies": {
45 | "tailwindcss": "^3.3.3",
46 | "typescript": "^5.2.2"
47 | },
48 | "peerDependencies": {
49 | "tailwindcss": ">=2.0.0"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/consts/defaultSettings.ts:
--------------------------------------------------------------------------------
1 | import { PluginConfig } from "../types/PluginConfig";
2 |
3 | export const defaultSettings: PluginConfig = {
4 | values: [
5 | {
6 | key: "xs",
7 | fontSize: [0.75, 0.75],
8 | lineHeight: [0.75, 1],
9 | },
10 | {
11 | key: "xs",
12 | fontSize: [0.5, 0.75],
13 | lineHeight: [0.75, 1],
14 | },
15 | {
16 | key: "sm",
17 | fontSize: [0.75, 1],
18 | lineHeight: [1.25, 1.5],
19 | },
20 | {
21 | key: "base",
22 | fontSize: [0.875, 1],
23 | lineHeight: [1, 1.25],
24 | },
25 | {
26 | key: "lg",
27 | fontSize: [1.125, 1.5],
28 | lineHeight: [1.75, 2],
29 | },
30 | {
31 | key: "2xl",
32 | fontSize: [1.5, 1.875],
33 | lineHeight: [2, 2.25],
34 | },
35 | {
36 | key: "3xl",
37 | fontSize: [1.875, 2.25],
38 | lineHeight: [2.25, 2.5],
39 | },
40 | {
41 | key: "4xl",
42 | fontSize: [2.25, 3],
43 | lineHeight: [2.5, 1],
44 | },
45 | {
46 | key: "5xl",
47 | fontSize: [3, 3.75],
48 | lineHeight: 1,
49 | },
50 | {
51 | key: "6xl",
52 | fontSize: [3.75, 4.5],
53 | lineHeight: 1,
54 | },
55 | {
56 | key: "7xl",
57 | fontSize: [4.5, 6],
58 | lineHeight: 1,
59 | },
60 | {
61 | key: "8xl",
62 | fontSize: [6, 8],
63 | lineHeight: 1,
64 | },
65 | {
66 | key: "9xl",
67 | fontSize: [6, 8],
68 | lineHeight: 1,
69 | },
70 | ],
71 | };
72 |
--------------------------------------------------------------------------------
/src/consts/index.ts:
--------------------------------------------------------------------------------
1 | export * from "./defaultSettings";
2 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from "./consts";
2 | import { FluidTypographyPlugin } from "./plugin";
3 | export * from "./types";
4 | export * from "./utils";
5 |
6 | export default FluidTypographyPlugin;
7 |
--------------------------------------------------------------------------------
/src/plugin/FluidTypographyPlugin.ts:
--------------------------------------------------------------------------------
1 | import * as plugin from "tailwindcss/plugin";
2 | import { defaultSettings } from "../consts/defaultSettings";
3 | import { PluginConfig } from "../types/PluginConfig";
4 | import { generateClampValues } from "../utils/generateClampValues";
5 | import { CSSRuleObject } from "tailwindcss/types/config";
6 |
7 | export const FluidTypographyPlugin = plugin.withOptions(function (
8 | customOptions: PluginConfig
9 | ) {
10 | return function ({ addUtilities, e }) {
11 | const {
12 | minScreenWidth = 30,
13 | maxScreenWidth = 80,
14 | unit = "rem",
15 | prefix = "",
16 | suffix = "-fluid",
17 | values,
18 | } = {
19 | ...defaultSettings,
20 | ...customOptions,
21 | };
22 |
23 | const generatedUtilities = values.map(
24 | ({ fontSize, lineHeight, letterSpacing, key }) => {
25 | const classes: CSSRuleObject | CSSRuleObject[] = {};
26 |
27 | if (fontSize) {
28 | const fluidFontSize = generateClampValues(
29 | fontSize,
30 | minScreenWidth,
31 | maxScreenWidth,
32 | unit
33 | );
34 |
35 | classes.fontSize = fluidFontSize;
36 | }
37 |
38 | if (lineHeight) {
39 | const moltenLineHeight = generateClampValues(
40 | lineHeight,
41 | minScreenWidth,
42 | maxScreenWidth,
43 | unit
44 | );
45 |
46 | classes.lineHeight = moltenLineHeight;
47 | }
48 |
49 | if (letterSpacing) {
50 | const rubberyTracking = generateClampValues(
51 | letterSpacing,
52 | minScreenWidth,
53 | maxScreenWidth,
54 | unit
55 | );
56 |
57 | classes.letterSpacing = rubberyTracking;
58 | }
59 |
60 | return {
61 | [`.${e(`${prefix}text-${key}${suffix}`)}`]: classes,
62 | };
63 | }
64 | );
65 |
66 | addUtilities(generatedUtilities);
67 | };
68 | });
69 |
--------------------------------------------------------------------------------
/src/plugin/index.ts:
--------------------------------------------------------------------------------
1 | export * from "./FluidTypographyPlugin";
2 |
--------------------------------------------------------------------------------
/src/types/PluginConfig.ts:
--------------------------------------------------------------------------------
1 | export type PluginConfig = {
2 | minScreenWidth?: number;
3 | maxScreenWidth?: number;
4 | unit?: string;
5 | suffix?: string;
6 | prefix?: string;
7 | values: {
8 | key: string;
9 | fontSize: [number, number] | number;
10 | lineHeight?: [number, number] | number;
11 | letterSpacing?: [number, number] | number;
12 | }[];
13 | };
14 |
--------------------------------------------------------------------------------
/src/types/index.ts:
--------------------------------------------------------------------------------
1 | export * from "./PluginConfig";
2 |
--------------------------------------------------------------------------------
/src/utils/generateClampValues.ts:
--------------------------------------------------------------------------------
1 | export function generateClampValues(
2 | value: [number, number] | [number] | number,
3 | minScreenWidth: number,
4 | maxScreenWidth: number,
5 | unit: string
6 | ) {
7 | /** If it's a flat value and not an array, it shouldn't be scaled. */
8 | if (typeof value === "number") {
9 | return `${value}${unit}`;
10 | }
11 |
12 | /** If it's array, it needs to be scaled between two values. */
13 | /** Users can pass [50px] instead of 50px by mistake when removing one of the values. Treat this the same. */
14 | if (value.length === 1) {
15 | return `${value}${unit}`;
16 | }
17 |
18 | /** Don't try to scale between more than 2 values. */
19 | if (value.length !== 2) {
20 | return null;
21 | }
22 |
23 | let [minValue, maxValue] = value;
24 |
25 | // If user passes numbers in wrong order, swap them. Usually happens with negative tracking.
26 | if (minValue > maxValue) {
27 | [minValue, maxValue] = [maxValue, minValue];
28 | }
29 |
30 | let minValueWithUnit = `${minValue}${unit}`;
31 | let maxValueWithUnit = `${maxValue}${unit}`;
32 |
33 | return `clamp(${minValueWithUnit}, calc(${minValueWithUnit} + (${maxValue} - ${minValue}) * ((100vw - ${minScreenWidth}${unit}) / (${maxScreenWidth} - ${minScreenWidth}))), ${maxValueWithUnit})`;
34 | }
35 |
--------------------------------------------------------------------------------
/src/utils/index.ts:
--------------------------------------------------------------------------------
1 | export * from "./generateClampValues";
2 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "include": ["."] /* Include only the src directory */,
3 | "compilerOptions": {
4 | "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
5 | "module": "ES6" /* Specify what module code is generated. */,
6 | "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
7 | "outDir": "dist",
8 | "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
9 | "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
10 | "strict": true /* Enable all strict type-checking options. */,
11 | "skipLibCheck": true /* Skip type checking all .d.ts files. */,
12 | "moduleResolution": "Node"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | "@alloc/quick-lru@^5.2.0":
6 | version "5.2.0"
7 | resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30"
8 | integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==
9 |
10 | "@jridgewell/gen-mapping@^0.3.2":
11 | version "0.3.3"
12 | resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098"
13 | integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==
14 | dependencies:
15 | "@jridgewell/set-array" "^1.0.1"
16 | "@jridgewell/sourcemap-codec" "^1.4.10"
17 | "@jridgewell/trace-mapping" "^0.3.9"
18 |
19 | "@jridgewell/resolve-uri@^3.1.0":
20 | version "3.1.1"
21 | resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721"
22 | integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==
23 |
24 | "@jridgewell/set-array@^1.0.1":
25 | version "1.1.2"
26 | resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72"
27 | integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
28 |
29 | "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14":
30 | version "1.4.15"
31 | resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32"
32 | integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==
33 |
34 | "@jridgewell/trace-mapping@^0.3.9":
35 | version "0.3.20"
36 | resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz#72e45707cf240fa6b081d0366f8265b0cd10197f"
37 | integrity sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==
38 | dependencies:
39 | "@jridgewell/resolve-uri" "^3.1.0"
40 | "@jridgewell/sourcemap-codec" "^1.4.14"
41 |
42 | "@nodelib/fs.scandir@2.1.5":
43 | version "2.1.5"
44 | resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
45 | integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
46 | dependencies:
47 | "@nodelib/fs.stat" "2.0.5"
48 | run-parallel "^1.1.9"
49 |
50 | "@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2":
51 | version "2.0.5"
52 | resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"
53 | integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
54 |
55 | "@nodelib/fs.walk@^1.2.3":
56 | version "1.2.8"
57 | resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
58 | integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
59 | dependencies:
60 | "@nodelib/fs.scandir" "2.1.5"
61 | fastq "^1.6.0"
62 |
63 | any-promise@^1.0.0:
64 | version "1.3.0"
65 | resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f"
66 | integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==
67 |
68 | anymatch@~3.1.2:
69 | version "3.1.3"
70 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
71 | integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
72 | dependencies:
73 | normalize-path "^3.0.0"
74 | picomatch "^2.0.4"
75 |
76 | arg@^5.0.2:
77 | version "5.0.2"
78 | resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c"
79 | integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==
80 |
81 | balanced-match@^1.0.0:
82 | version "1.0.2"
83 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
84 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
85 |
86 | binary-extensions@^2.0.0:
87 | version "2.2.0"
88 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
89 | integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
90 |
91 | brace-expansion@^1.1.7:
92 | version "1.1.11"
93 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
94 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
95 | dependencies:
96 | balanced-match "^1.0.0"
97 | concat-map "0.0.1"
98 |
99 | braces@^3.0.2, braces@~3.0.2:
100 | version "3.0.2"
101 | resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
102 | integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
103 | dependencies:
104 | fill-range "^7.0.1"
105 |
106 | camelcase-css@^2.0.1:
107 | version "2.0.1"
108 | resolved "https://registry.yarnpkg.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5"
109 | integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
110 |
111 | chokidar@^3.5.3:
112 | version "3.5.3"
113 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
114 | integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
115 | dependencies:
116 | anymatch "~3.1.2"
117 | braces "~3.0.2"
118 | glob-parent "~5.1.2"
119 | is-binary-path "~2.1.0"
120 | is-glob "~4.0.1"
121 | normalize-path "~3.0.0"
122 | readdirp "~3.6.0"
123 | optionalDependencies:
124 | fsevents "~2.3.2"
125 |
126 | commander@^4.0.0:
127 | version "4.1.1"
128 | resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
129 | integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
130 |
131 | concat-map@0.0.1:
132 | version "0.0.1"
133 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
134 | integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
135 |
136 | cssesc@^3.0.0:
137 | version "3.0.0"
138 | resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
139 | integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
140 |
141 | didyoumean@^1.2.2:
142 | version "1.2.2"
143 | resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037"
144 | integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==
145 |
146 | dlv@^1.1.3:
147 | version "1.1.3"
148 | resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79"
149 | integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==
150 |
151 | fast-glob@^3.2.12:
152 | version "3.3.1"
153 | resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.1.tgz#784b4e897340f3dbbef17413b3f11acf03c874c4"
154 | integrity sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==
155 | dependencies:
156 | "@nodelib/fs.stat" "^2.0.2"
157 | "@nodelib/fs.walk" "^1.2.3"
158 | glob-parent "^5.1.2"
159 | merge2 "^1.3.0"
160 | micromatch "^4.0.4"
161 |
162 | fastq@^1.6.0:
163 | version "1.15.0"
164 | resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a"
165 | integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==
166 | dependencies:
167 | reusify "^1.0.4"
168 |
169 | fill-range@^7.0.1:
170 | version "7.0.1"
171 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
172 | integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
173 | dependencies:
174 | to-regex-range "^5.0.1"
175 |
176 | fs.realpath@^1.0.0:
177 | version "1.0.0"
178 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
179 | integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
180 |
181 | fsevents@~2.3.2:
182 | version "2.3.3"
183 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
184 | integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
185 |
186 | function-bind@^1.1.2:
187 | version "1.1.2"
188 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
189 | integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
190 |
191 | glob-parent@^5.1.2, glob-parent@~5.1.2:
192 | version "5.1.2"
193 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
194 | integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
195 | dependencies:
196 | is-glob "^4.0.1"
197 |
198 | glob-parent@^6.0.2:
199 | version "6.0.2"
200 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
201 | integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
202 | dependencies:
203 | is-glob "^4.0.3"
204 |
205 | glob@7.1.6:
206 | version "7.1.6"
207 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
208 | integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
209 | dependencies:
210 | fs.realpath "^1.0.0"
211 | inflight "^1.0.4"
212 | inherits "2"
213 | minimatch "^3.0.4"
214 | once "^1.3.0"
215 | path-is-absolute "^1.0.0"
216 |
217 | hasown@^2.0.0:
218 | version "2.0.0"
219 | resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c"
220 | integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==
221 | dependencies:
222 | function-bind "^1.1.2"
223 |
224 | inflight@^1.0.4:
225 | version "1.0.6"
226 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
227 | integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
228 | dependencies:
229 | once "^1.3.0"
230 | wrappy "1"
231 |
232 | inherits@2:
233 | version "2.0.4"
234 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
235 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
236 |
237 | is-binary-path@~2.1.0:
238 | version "2.1.0"
239 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
240 | integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
241 | dependencies:
242 | binary-extensions "^2.0.0"
243 |
244 | is-core-module@^2.13.0:
245 | version "2.13.1"
246 | resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384"
247 | integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==
248 | dependencies:
249 | hasown "^2.0.0"
250 |
251 | is-extglob@^2.1.1:
252 | version "2.1.1"
253 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
254 | integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
255 |
256 | is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
257 | version "4.0.3"
258 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
259 | integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
260 | dependencies:
261 | is-extglob "^2.1.1"
262 |
263 | is-number@^7.0.0:
264 | version "7.0.0"
265 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
266 | integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
267 |
268 | jiti@^1.18.2:
269 | version "1.20.0"
270 | resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.20.0.tgz#2d823b5852ee8963585c8dd8b7992ffc1ae83b42"
271 | integrity sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==
272 |
273 | lilconfig@^2.0.5, lilconfig@^2.1.0:
274 | version "2.1.0"
275 | resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52"
276 | integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==
277 |
278 | lines-and-columns@^1.1.6:
279 | version "1.2.4"
280 | resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
281 | integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
282 |
283 | merge2@^1.3.0:
284 | version "1.4.1"
285 | resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
286 | integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
287 |
288 | micromatch@^4.0.4, micromatch@^4.0.5:
289 | version "4.0.5"
290 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
291 | integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
292 | dependencies:
293 | braces "^3.0.2"
294 | picomatch "^2.3.1"
295 |
296 | minimatch@^3.0.4:
297 | version "3.1.2"
298 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
299 | integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
300 | dependencies:
301 | brace-expansion "^1.1.7"
302 |
303 | mz@^2.7.0:
304 | version "2.7.0"
305 | resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32"
306 | integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==
307 | dependencies:
308 | any-promise "^1.0.0"
309 | object-assign "^4.0.1"
310 | thenify-all "^1.0.0"
311 |
312 | nanoid@^3.3.6:
313 | version "3.3.6"
314 | resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c"
315 | integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==
316 |
317 | normalize-path@^3.0.0, normalize-path@~3.0.0:
318 | version "3.0.0"
319 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
320 | integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
321 |
322 | object-assign@^4.0.1:
323 | version "4.1.1"
324 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
325 | integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
326 |
327 | object-hash@^3.0.0:
328 | version "3.0.0"
329 | resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9"
330 | integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==
331 |
332 | once@^1.3.0:
333 | version "1.4.0"
334 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
335 | integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
336 | dependencies:
337 | wrappy "1"
338 |
339 | path-is-absolute@^1.0.0:
340 | version "1.0.1"
341 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
342 | integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
343 |
344 | path-parse@^1.0.7:
345 | version "1.0.7"
346 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
347 | integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
348 |
349 | picocolors@^1.0.0:
350 | version "1.0.0"
351 | resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
352 | integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
353 |
354 | picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
355 | version "2.3.1"
356 | resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
357 | integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
358 |
359 | pify@^2.3.0:
360 | version "2.3.0"
361 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
362 | integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==
363 |
364 | pirates@^4.0.1:
365 | version "4.0.6"
366 | resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"
367 | integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==
368 |
369 | postcss-import@^15.1.0:
370 | version "15.1.0"
371 | resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-15.1.0.tgz#41c64ed8cc0e23735a9698b3249ffdbf704adc70"
372 | integrity sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==
373 | dependencies:
374 | postcss-value-parser "^4.0.0"
375 | read-cache "^1.0.0"
376 | resolve "^1.1.7"
377 |
378 | postcss-js@^4.0.1:
379 | version "4.0.1"
380 | resolved "https://registry.yarnpkg.com/postcss-js/-/postcss-js-4.0.1.tgz#61598186f3703bab052f1c4f7d805f3991bee9d2"
381 | integrity sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==
382 | dependencies:
383 | camelcase-css "^2.0.1"
384 |
385 | postcss-load-config@^4.0.1:
386 | version "4.0.1"
387 | resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-4.0.1.tgz#152383f481c2758274404e4962743191d73875bd"
388 | integrity sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==
389 | dependencies:
390 | lilconfig "^2.0.5"
391 | yaml "^2.1.1"
392 |
393 | postcss-nested@^6.0.1:
394 | version "6.0.1"
395 | resolved "https://registry.yarnpkg.com/postcss-nested/-/postcss-nested-6.0.1.tgz#f83dc9846ca16d2f4fa864f16e9d9f7d0961662c"
396 | integrity sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==
397 | dependencies:
398 | postcss-selector-parser "^6.0.11"
399 |
400 | postcss-selector-parser@^6.0.11:
401 | version "6.0.13"
402 | resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz#d05d8d76b1e8e173257ef9d60b706a8e5e99bf1b"
403 | integrity sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==
404 | dependencies:
405 | cssesc "^3.0.0"
406 | util-deprecate "^1.0.2"
407 |
408 | postcss-value-parser@^4.0.0:
409 | version "4.2.0"
410 | resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
411 | integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
412 |
413 | postcss@^8.4.23:
414 | version "8.4.31"
415 | resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
416 | integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
417 | dependencies:
418 | nanoid "^3.3.6"
419 | picocolors "^1.0.0"
420 | source-map-js "^1.0.2"
421 |
422 | queue-microtask@^1.2.2:
423 | version "1.2.3"
424 | resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
425 | integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
426 |
427 | read-cache@^1.0.0:
428 | version "1.0.0"
429 | resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774"
430 | integrity sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==
431 | dependencies:
432 | pify "^2.3.0"
433 |
434 | readdirp@~3.6.0:
435 | version "3.6.0"
436 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
437 | integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
438 | dependencies:
439 | picomatch "^2.2.1"
440 |
441 | resolve@^1.1.7, resolve@^1.22.2:
442 | version "1.22.8"
443 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
444 | integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
445 | dependencies:
446 | is-core-module "^2.13.0"
447 | path-parse "^1.0.7"
448 | supports-preserve-symlinks-flag "^1.0.0"
449 |
450 | reusify@^1.0.4:
451 | version "1.0.4"
452 | resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
453 | integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
454 |
455 | run-parallel@^1.1.9:
456 | version "1.2.0"
457 | resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
458 | integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
459 | dependencies:
460 | queue-microtask "^1.2.2"
461 |
462 | source-map-js@^1.0.2:
463 | version "1.0.2"
464 | resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
465 | integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
466 |
467 | sucrase@^3.32.0:
468 | version "3.34.0"
469 | resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.34.0.tgz#1e0e2d8fcf07f8b9c3569067d92fbd8690fb576f"
470 | integrity sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==
471 | dependencies:
472 | "@jridgewell/gen-mapping" "^0.3.2"
473 | commander "^4.0.0"
474 | glob "7.1.6"
475 | lines-and-columns "^1.1.6"
476 | mz "^2.7.0"
477 | pirates "^4.0.1"
478 | ts-interface-checker "^0.1.9"
479 |
480 | supports-preserve-symlinks-flag@^1.0.0:
481 | version "1.0.0"
482 | resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
483 | integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
484 |
485 | tailwindcss@^3.3.3:
486 | version "3.3.3"
487 | resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.3.3.tgz#90da807393a2859189e48e9e7000e6880a736daf"
488 | integrity sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==
489 | dependencies:
490 | "@alloc/quick-lru" "^5.2.0"
491 | arg "^5.0.2"
492 | chokidar "^3.5.3"
493 | didyoumean "^1.2.2"
494 | dlv "^1.1.3"
495 | fast-glob "^3.2.12"
496 | glob-parent "^6.0.2"
497 | is-glob "^4.0.3"
498 | jiti "^1.18.2"
499 | lilconfig "^2.1.0"
500 | micromatch "^4.0.5"
501 | normalize-path "^3.0.0"
502 | object-hash "^3.0.0"
503 | picocolors "^1.0.0"
504 | postcss "^8.4.23"
505 | postcss-import "^15.1.0"
506 | postcss-js "^4.0.1"
507 | postcss-load-config "^4.0.1"
508 | postcss-nested "^6.0.1"
509 | postcss-selector-parser "^6.0.11"
510 | resolve "^1.22.2"
511 | sucrase "^3.32.0"
512 |
513 | thenify-all@^1.0.0:
514 | version "1.6.0"
515 | resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726"
516 | integrity sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==
517 | dependencies:
518 | thenify ">= 3.1.0 < 4"
519 |
520 | "thenify@>= 3.1.0 < 4":
521 | version "3.3.1"
522 | resolved "https://registry.yarnpkg.com/thenify/-/thenify-3.3.1.tgz#8932e686a4066038a016dd9e2ca46add9838a95f"
523 | integrity sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==
524 | dependencies:
525 | any-promise "^1.0.0"
526 |
527 | to-regex-range@^5.0.1:
528 | version "5.0.1"
529 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
530 | integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
531 | dependencies:
532 | is-number "^7.0.0"
533 |
534 | ts-interface-checker@^0.1.9:
535 | version "0.1.13"
536 | resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699"
537 | integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==
538 |
539 | typescript@^5.2.2:
540 | version "5.2.2"
541 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
542 | integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
543 |
544 | util-deprecate@^1.0.2:
545 | version "1.0.2"
546 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
547 | integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
548 |
549 | wrappy@1:
550 | version "1.0.2"
551 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
552 | integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
553 |
554 | yaml@^2.1.1:
555 | version "2.3.3"
556 | resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.3.tgz#01f6d18ef036446340007db8e016810e5d64aad9"
557 | integrity sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==
558 |
--------------------------------------------------------------------------------