2024-02-07 15:53:34 +02:00
|
|
|
export default {
|
|
|
|
|
name: 'Root',
|
|
|
|
|
selector: ':root',
|
2024-09-26 22:31:28 +03:00
|
|
|
notEditable: true,
|
2024-02-07 15:53:34 +02:00
|
|
|
validInnerComponents: [
|
2024-12-24 16:24:13 +02:00
|
|
|
// These are purely for --parent--text et such to work
|
|
|
|
|
'Text',
|
|
|
|
|
'Link',
|
|
|
|
|
'Border',
|
|
|
|
|
|
2024-02-07 15:53:34 +02:00
|
|
|
'Underlay',
|
2024-02-11 23:11:28 +02:00
|
|
|
'Modals',
|
2024-02-12 03:46:40 +02:00
|
|
|
'Popover',
|
2024-02-18 20:11:06 +02:00
|
|
|
'TopBar',
|
|
|
|
|
'Scrollbar',
|
2024-02-22 01:10:24 +02:00
|
|
|
'ScrollbarElement',
|
2024-02-22 18:38:45 +02:00
|
|
|
'MobileDrawer',
|
2024-02-27 22:02:25 +02:00
|
|
|
'Alert',
|
2024-02-22 18:38:45 +02:00
|
|
|
'Button' // mobile post button
|
2024-02-22 18:04:28 +02:00
|
|
|
],
|
2024-07-17 17:19:57 +03:00
|
|
|
validInnerComponentsLite: [
|
|
|
|
|
'Underlay',
|
|
|
|
|
'Scrollbar',
|
|
|
|
|
'ScrollbarElement'
|
|
|
|
|
],
|
2024-02-22 18:04:28 +02:00
|
|
|
defaultRules: [
|
|
|
|
|
{
|
|
|
|
|
directives: {
|
2024-02-28 22:28:15 +02:00
|
|
|
// These are here just to establish order,
|
|
|
|
|
// themes should override those
|
|
|
|
|
'--bg': 'color | #121a24',
|
|
|
|
|
'--fg': 'color | #182230',
|
|
|
|
|
'--text': 'color | #b9b9ba',
|
|
|
|
|
'--link': 'color | #d8a070',
|
2024-03-04 19:53:45 +02:00
|
|
|
'--accent': 'color | #d8a070',
|
2024-02-28 22:28:15 +02:00
|
|
|
'--cRed': 'color | #FF0000',
|
|
|
|
|
'--cBlue': 'color | #0095ff',
|
|
|
|
|
'--cGreen': 'color | #0fa00f',
|
|
|
|
|
'--cOrange': 'color | #ffa500',
|
|
|
|
|
|
|
|
|
|
// Fonts
|
2024-02-22 18:38:45 +02:00
|
|
|
'--font': 'generic | sans-serif',
|
2024-02-28 14:57:19 +02:00
|
|
|
'--monoFont': 'generic | monospace',
|
2024-02-28 22:28:15 +02:00
|
|
|
|
|
|
|
|
// Fallback no-background-image color
|
|
|
|
|
// (also useful in some other places like scrollbars)
|
2024-03-04 19:53:45 +02:00
|
|
|
'--wallpaper': 'color | --bg, -2',
|
|
|
|
|
|
|
|
|
|
// Selection colors
|
|
|
|
|
'--selectionBackground': 'color | --accent',
|
2024-10-03 00:44:16 +03:00
|
|
|
'--selectionText': 'color | $textColor(--accent --text no-preserve)'
|
2024-02-22 18:04:28 +02:00
|
|
|
}
|
|
|
|
|
}
|
2024-02-07 15:53:34 +02:00
|
|
|
]
|
|
|
|
|
}
|