Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorionbearstudio committed May 22, 2024
1 parent 1e62a7c commit 6e6a73d
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 85 deletions.
1 change: 1 addition & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

const lightCodeTheme = require('./src/theme/lightCustomTheme.js');
const darkCodeTheme = require('./src/theme/darkCustomTheme.js');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'React Native Ficus UI',
Expand Down
135 changes: 50 additions & 85 deletions docs/src/theme/lightCustomTheme.js
Original file line number Diff line number Diff line change
@@ -1,91 +1,56 @@
'use strict';

// Original: https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-ghcolors.css
var theme = {
plain: {
color: '#393A34',
backgroundColor: '#f6f8fa',
color: "#393A34",
backgroundColor: "#f6f8fa"
},
styles: [
{
types: ['comment', 'prolog', 'doctype', 'cdata'],
style: {
color: '#999988',
fontStyle: 'italic',
},
},
{
types: ['maybe-class-name'],
style: {
opacity: 0.7,
color: 'black',
},
},
{
types: ['string', 'attr-value'],
style: {
color: '#86b300',
},
},
{
types: ['punctuation'],
style: {
color: '#abb0b6',
},
},
{
types: [
'entity',
'url',
'symbol',
'number',
'boolean',
'variable',
'constant',
'property',
'regex',
'inserted',
],
style: {
color: '#ffae57',
},
},
{
types: ['atrule', 'attr-name'],
style: {
color: '#ffae57',
},
},
{
types: ['function', 'deleted'],
style: {
color: '#d73a49',
},
},
{
types: ['function-variable'],
style: {
color: '#6f42c1',
},
},
{
types: ['tag', 'selector'],
style: {
color: '#41a6d9',
},
},
{
types: ['keyword'],
style: {
color: '#f2590c',
},
},
{
types: ['operator'],
style: {
color: '#abb0b6',
},
},
],
styles: [{
types: ["comment", "prolog", "doctype", "cdata"],
style: {
color: "#999988",
fontStyle: "italic"
}
}, {
types: ["namespace"],
style: {
opacity: 0.7
}
}, {
types: ["string", "attr-value"],
style: {
color: "#e3116c"
}
}, {
types: ["punctuation", "operator"],
style: {
color: "#393A34"
}
}, {
types: ["entity", "url", "symbol", "number", "boolean", "variable", "constant", "property", "regex", "inserted"],
style: {
color: "#36acaa"
}
}, {
types: ["atrule", "keyword", "attr-name", "selector"],
style: {
color: "#00a4db"
}
}, {
types: ["function", "deleted", "tag"],
style: {
color: "#d73a49"
}
}, {
types: ["function-variable"],
style: {
color: "#6f42c1"
}
}, {
types: ["tag", "selector", "keyword"],
style: {
color: "#00009f"
}
}]
};

module.exports = theme;

0 comments on commit 6e6a73d

Please sign in to comment.