Skip to content

Commit

Permalink
feat(style): add our z-index
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Jul 17, 2023
1 parent 74fc62b commit af5c97f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"cSpell.words": [
"alimd",
"alwatr",
"bottomness",
"calt",
"chatbox",
"checkmark",
Expand Down Expand Up @@ -48,6 +49,7 @@
"Superfast",
"tailwindcss",
"tnum",
"topness",
"tsbuildinfo",
"typescale",
"vazirmatn",
Expand Down
2 changes: 2 additions & 0 deletions ui/style/lib/tailwind.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {colorTheme} from './colors.js';
import {typographyTheme} from './typography.js';
import {zIndex} from './z-index.js';

import type {Config} from 'tailwindcss';

Expand All @@ -10,6 +11,7 @@ export const tailwindConfig: Config = {
extend: {
...colorTheme,
...typographyTheme,
...zIndex,
},
plugins: [],
},
Expand Down
19 changes: 19 additions & 0 deletions ui/style/lib/z-index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {Config} from 'tailwindcss';

export const zIndex: Config['theme'] = {
zIndex: {
'bottomness': '-900',
'below': '-1',
'default': '1',
'above': '2',
'dropdown': '100',
'sticky': '200',
'fixed': '300',
'backdrop': '400',
'modal': '500',
'popover': '600',
'snackbar': '700',
'tooltip': '800',
'topness': '900',
},
};

0 comments on commit af5c97f

Please sign in to comment.