documentation-site/components/yard/dark-theme.ts (72 lines of code) (raw):
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
const theme = {
plain: {
color: "#d4d4d4",
backgroundColor: "#292929",
fontSize: "14px",
fontFamily: `Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,
margin: 0,
},
styles: [
{
types: ["prolog"],
style: {
color: "rgb(0, 0, 128)",
},
},
{
types: ["comment"],
style: {
color: "rgb(106, 153, 85)",
},
},
{
types: ["builtin", "tag", "changed", "punctuation", "keyword"],
style: {
color: "rgb(86, 156, 214)",
},
},
{
types: ["number", "inserted"],
style: {
color: "rgb(181, 206, 168)",
},
},
{
types: ["constant"],
style: {
color: "rgb(100, 102, 149)",
},
},
{
types: ["attr-name", "variable"],
style: {
color: "rgb(156, 220, 254)",
},
},
{
types: ["deleted", "string"],
style: {
color: "rgb(206, 145, 120)",
},
},
{
types: ["operator"],
style: {
color: "rgb(212, 212, 212)",
},
},
{
types: ["function"],
style: {
color: "rgb(220, 220, 170)",
},
},
{
types: ["char"],
style: {
color: "rgb(209, 105, 105)",
},
},
],
};
export default theme;