summaryrefslogtreecommitdiffstats
path: root/src/styles/globals.scss
blob: f9a1281122c7b08f16d2c5c7f4127c13745e88b4 (plain)
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
@charset 'utf-8';

/**
 * 1.0. Vendors
 *
 * Import each files separately to define vendors styles order.
 */
@use "modern-normalize";
@use "vendors/prism";

/**
 * 2.0. Base
 *
 * Define some standard styles and CSS variables (colors, fonts...).
 */
@use "base/base";
@use "base/animations";
@use "base/colors";
@use "base/fonts";
@use "base/helpers";
@use "base/spacings";
@use "base/typography";

/**
 * 3.0. Components
 *
 * Define styles for external components (like WordPress blocks).
 */
@use "components/wp-blocks";

/**
 * 4.0. Themes
 *
 * Define themes specific styles.
 */
@use "themes/dark";
ss="nx">greedy: true, inside: { arrow: { pattern: /(?:\.+->?|--+[->]|==+[=>])$/, alias: 'operator', }, label: { pattern: /^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/, lookbehind: true, alias: 'property', }, 'arrow-head': { pattern: /^\S+/, alias: ['arrow', 'operator'], }, }, }, arrow: [ // This might look complex but it really isn't. // There are many possible arrows (see tests) and it's impossible to fit all of them into one pattern. The // problem is that we only have one lookbehind per pattern. However, we cannot disallow too many arrow // characters in the one lookbehind because that would create too many false negatives. So we have to split the // arrows into different patterns. { // ER diagram pattern: /(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/, lookbehind: true, alias: 'operator', }, { // flow chart // (?:==+|--+|-\.*-) pattern: /(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/, lookbehind: true, alias: 'operator', }, { // sequence diagram pattern: /(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/, lookbehind: true, alias: 'operator', }, { // class diagram pattern: /(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/, lookbehind: true, alias: 'operator', }, ], label: { pattern: /(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/, lookbehind: true, greedy: true, alias: 'property', }, text: { pattern: /(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/, alias: 'string', }, string: { pattern: /"[^"\r\n]*"/, greedy: true, }, annotation: { pattern: /<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i, alias: 'important', }, keyword: [ // This language has both case-sensitive and case-insensitive keywords { pattern: /(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m, lookbehind: true, greedy: true, }, { pattern: /(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im, lookbehind: true, greedy: true, }, ], entity: /#[a-z0-9]+;/, operator: { pattern: /(\w[ \t]*)&(?=[ \t]*\w)|:::|:/, lookbehind: true, }, punctuation: /[(){};]/, };