File tree Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,16 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
249249 white-space: normal;
250250 }
251251
252+ .token.inserted-sign {
253+ background-color: #e6ffed;
254+ color: #30A666;
255+ }
256+
257+ .token.deleted-sign {
258+ background-color: #ffeef0;
259+ color: (--danger-color);
260+ }
261+
252262 .token.comment,
253263 .token.prolog,
254264 .token.doctype,
@@ -277,16 +287,16 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
277287 }
278288
279289 .token.entity,
280- .token.number {
290+ .token.number,
291+ .token.inserted {
281292 color: #30A666;
282293 }
283294
284295 .token.selector,
285296 .token.attr-name,
286297 .token.string,
287298 .token.char,
288- .token.builtin,
289- .token.inserted {
299+ .token.builtin {
290300 color: var(--purple-text-color);
291301 }
292302
@@ -328,16 +338,6 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
328338 .token.entity {
329339 cursor: help;
330340 }
331-
332- .token.inserted-sign {
333- background-color: #e6ffed;
334- color: #30A666;
335- }
336-
337- .token.deleted-sign {
338- background-color: #ffeef0;
339- color: (--danger-color);
340- }
341341` ;
342342
343343export const GlobalStyles = ( props : GlobalStylesProps ) => {
Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ const Template = ({ ...args }) => <PrismCode {...args} />;
1616
1717export const OneLine = Template . bind ( { } ) ;
1818OneLine . args = {
19+ language : 'bash' ,
1920 code : '$ npm install -g cubejs-cli' ,
2021} ;
2122
2223export const MultiLine = Template . bind ( { } ) ;
2324MultiLine . args = {
25+ language : 'bash' ,
2426 code : '$ npm install -g cubejs-cli\n$ cubejs deploy' ,
2527} ;
2628
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ import {
1111
1212import { Prism } from './prismSetup' ;
1313
14+ import 'prismjs/components/prism-javascript' ;
15+ import 'prismjs/components/prism-yaml' ;
16+ import 'prismjs/components/prism-bash' ;
17+
1418const PreElement = tasty ( {
1519 as : 'pre' ,
1620 qa : 'CodeBlock' ,
You can’t perform that action at this time.
0 commit comments