Path: blob/trunk/javascript/grid-ui/src/theme/themes.tsx
1989 views
// Licensed to the Software Freedom Conservancy (SFC) under one1// or more contributor license agreements. See the NOTICE file2// distributed with this work for additional information3// regarding copyright ownership. The SFC licenses this file4// to you under the Apache License, Version 2.0 (the5// "License"); you may not use this file except in compliance6// with the License. You may obtain a copy of the License at7//8// http://www.apache.org/licenses/LICENSE-2.09//10// Unless required by applicable law or agreed to in writing,11// software distributed under the License is distributed on an12// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY13// KIND, either express or implied. See the License for the14// specific language governing permissions and limitations15// under the License.1617import { createTheme, Theme } from '@mui/material/styles'18import typography from './typography'1920export const lightTheme: Theme = createTheme({21palette: {22mode: 'light',23primary: {24main: '#615E9B'25},26secondary: {27main: '#F7F8F8'28},29error: {30main: '#FF1744'31},32background: {33default: '#F7F8F8'34}35},36typography37})3839export const darkTheme: Theme = createTheme({40palette: {41mode: 'dark',42primary: {43main: '#615E9B'44},45secondary: {46main: '#36393F'47},48error: {49main: '#F04747'50},51background: {52default: '#0c1117',53paper: '#161B22'54},55text: {56primary: '#F0F6FC',57secondary: '#8B949E'58}59},60typography,61components: {62MuiAppBar: {63styleOverrides: {64root: {65backgroundColor: '#020408',66boxShadow: '0 1px 3px rgba(0,0,0,0.5)'67}68}69}70}71})727374