Skip to content

Commit

Permalink
Add Colors Constant To tailwind.config.ts
Browse files Browse the repository at this point in the history
This allows importing colors from a single place for the rest of the app.
Also added Atlassify to known words in .vscode settings
  • Loading branch information
aravindparappil46 committed Sep 20, 2024
1 parent b132472 commit d24fabc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
],
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
}
},
"cSpell.words": [
"Atlassify"
]
}
3 changes: 2 additions & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { quitApp } from '../utils/comms';
import { getFilterCount } from '../utils/filters';
import { openMyNotifications } from '../utils/links';
import { getNotificationCount } from '../utils/notifications/notifications';
import { colors } from '../../tailwind.config';

export const Sidebar: FC = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -238,7 +239,7 @@ export const Sidebar: FC = () => {
{...iconProps}
size="medium"
primaryColor="white"
secondaryColor="#388BFF"
secondaryColor={colors['sidebar']}
/>
)}
shape="circle"
Expand Down
15 changes: 10 additions & 5 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
/** @type {import('tailwindcss').Config} */
export default {
import type { Config } from 'tailwindcss';

export const colors = {
sidebar: '#388BFF',
};

const config: Config = {
content: ['./src/**/*.js', './src/**/*.ts', './src/**/*.tsx'],
darkMode: 'class',
theme: {
extend: {
colors: {
sidebar: '#388BFF',
},
colors: colors,
},
},
variants: {
extend: {},
},
plugins: [],
};

export default config;

0 comments on commit d24fabc

Please sign in to comment.