Skip to content

Commit

Permalink
Add token-based CSS theming #11262
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Aug 13, 2024
1 parent eec0666 commit f7fd65e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
50 changes: 47 additions & 3 deletions arches/app/media/js/utils/create-vue-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,60 @@ import StyleClass from 'primevue/styleclass';
import ToastService from 'primevue/toastservice';
import Tooltip from 'primevue/tooltip';

import Aura from '@primevue/themes/aura';

import { definePreset } from '@primevue/themes';
import { createApp } from 'vue';
import { createGettext } from "vue3-gettext";
import Aura from '@primevue/themes/aura';

import arches from 'arches';

export const ArchesPreset = definePreset(Aura, {
primitive: {
sky: {
950: '#2d3c4b', // matches arches sidebar
},
},
semantic: {
primary: {
50: '{sky.50}',
100: '{sky.100}',
200: '{sky.200}',
300: '{sky.300}',
400: '{sky.400}',
500: '{sky.500}',
600: '{sky.600}',
700: '{sky.700}',
800: '{sky.800}',
900: '{sky.900}',
950: '{sky.950}',
},
},
components: {
button: {
root: {
label: {
fontWeight: 600,
},
},
},
datatable: {
column: {
title: {
fontWeight: 600,
},
},
},
splitter: {
handle: {
background: '{surface.500}',
},
},
},
});

const DEFAULT_THEME = {
theme: {
preset: Aura,
preset: ArchesPreset,
options: {
prefix: 'p',
darkModeSelector: 'system',
Expand Down
1 change: 1 addition & 0 deletions releases/8.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Arches 8.0.0 Release Notes
### Major enhancements
- 9613 Adds editable_future_graphs and the ability to update Graphs without unpublishing.
- 11042 Adds `ResourceInstanceLifecycle`s and `ResourceInstanceLifecycleState`s
- Add token-based CSS theming [#11262](https://github.com/archesproject/arches/issues/11262)

### Additional highlights

Expand Down

0 comments on commit f7fd65e

Please sign in to comment.