-
Notifications
You must be signed in to change notification settings - Fork 0
/
Base16Options.ts
70 lines (63 loc) · 1.82 KB
/
Base16Options.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import type { Base16ColorSpace } from './Base16ColorSpace.ts'
import type { Base16System } from './Base16System.ts'
export interface Base16Options {
/** Which color scheme system to use.
*
* Currently, there are two standards: base16 and base24.
*
* base24 is backwards-compatible with base16, so you can use base24
* color schemes and limit yourself to 16 colors.
*
* Use `'base24'` if you want `-bright` variants for colors.
*
* @default 'base16'
*/
system?: Base16System
/** Whether or not to invert the 100-800 colors
*
* This is useful when the default color scheme of your project is a light
* theme and you want 800 to mean "dark" instead of "light".
*
* @default false
*/
invert?: boolean
/** Whether or not to style prose classes as well.
*
* @default false
**/
withTypography?: boolean
/** Only extend colors instead of override them.
*
* This lets you use base16 colors with existing Tailwind CSS colors.
*
* @default false
*/
extendOnly?: boolean
/** Custom directory for color schemes in .yaml files.
*
* If `undefined`, color schemes from tinted-theming are used.
*
* Scheme gallery: <https://tinted-theming.github.io/base16-gallery/>
* Upstream repository: <https://github.com/tinted-theming/schemes>
*
* @default '/path/to/base16-tailwind/schemes'
**/
customPath?: string
/** Which color space to use for the CSS variables.
*
* @default 'rgb'
**/
colorSpace?: Base16ColorSpace
/** Optional prefix to namespace color classes with.
*
* This lets you use classes like `bg-base16-red` and `bg-base16-300`
* instead of `bg-red` and `bg-300`.
*
* If set, this must be a slug-like string between 1 and 16 characters long.
*
* @default undefined
*
* @example 'base16'
**/
prefix?: string
}