• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deriv-com / quill-tokens / 6298939233

25 Sep 2023 11:51AM UTC coverage: 42.697% (-4.1%) from 46.818%
6298939233

Pull #7

github

mohsen-deriv
chore: added new semantic viewport tokens
Pull Request #7: update-raw-token-2023-09-25-08-12-07

21 of 71 branches covered (0.0%)

Branch coverage included in aggregate %.

35 of 35 new or added lines in 4 files covered. (100.0%)

93 of 196 relevant lines covered (47.45%)

162.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

8.33
/src/actions/tailwind.actions.ts
1
import { Action, Named } from 'style-dictionary';
2
import * as fs from 'fs';
3
import { QUILL_TAILWIND_BUILD_PATH } from '../utils';
4

5
export const makeStylesAction: Named<Action> = {
1✔
6
  name: 'deriv/tw/make-style',
7
  do: (dictionary, config) => {
8
    const hasCore = config?.files?.[0]?.options?.useCoreVariables || false;
×
9
    const files = ['_mobile.css', '_sm.css', '_tablet.css', '_lg.css', '_laptop.css', '_desktop.css'];
×
10
    let result = hasCore ? `@import "./_core.css";\n` : '';
×
11

12
    files.forEach((fileItem) => {
×
13
      result += `@import "./${fileItem}";\n`;
×
14
    });
15
    fs.writeFileSync(`${QUILL_TAILWIND_BUILD_PATH}styles.css`, result);
×
16
  },
17
  undo: () => {
18
    fs.unlinkSync(`${QUILL_TAILWIND_BUILD_PATH}styles.css`);
×
19
  },
20
};
21

22
export const makeFontStylesAction: Named<Action> = {
1✔
23
  name: 'deriv/tw/make-font-style',
24
  do: (dictionary, config) => {
25
    const hasCore = config?.files?.[0]?.options?.useCoreVariables || false;
×
26
    const fonts = [
×
27
      "@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,100;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');",
28
      "@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,100;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');",
29
      "@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,100;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');",
30
    ];
31
    let result = hasCore ? `@import "./_core.css";\n` : '';
×
32

33
    fonts.forEach((fontItem) => {
×
34
      result += `${fontItem}\n`;
×
35
    });
36
    fs.writeFileSync(`${QUILL_TAILWIND_BUILD_PATH}fonts.css`, result);
×
37
  },
38
  undo: () => {
39
    fs.unlinkSync(`${QUILL_TAILWIND_BUILD_PATH}fonts.css`);
×
40
  },
41
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc