Files
mmm-projet/constants/theme.ts

188 lines
5.1 KiB
TypeScript

/**
* Below are the colors that are used in the app. The colors are defined in the light and dark mode.
* There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc.
*/
import { Platform } from 'react-native';
const tintColorLight = '#0a7ea4';
const tintColorDark = '#fff';
export const Colors = {
light: {
text: '#11181C',
text_: '#ECEDEE',
background0: '#ffffff',
background1: '#F1F1F0',
background2: '#E2E1E0',
background3: '#D3D2D0',
background4: '#C4C2C0',
background5: '#B5B3B0',
tint: tintColorLight,
icon: '#687076',
tabIconDefault: '#687076',
tabIconSelected: tintColorLight,
},
dark: {
text: '#ECEDEE',
text_: '#11181C',
background0: '#000000',
background1: '#111010',
background2: '#222120',
background3: '#333130',
background4: '#444240',
background5: '#555250',
tint: tintColorDark,
icon: '#9BA1A6',
tabIconDefault: '#9BA1A6',
tabIconSelected: tintColorDark,
},
};
export const MapColor = {
light:[
{ elementType: 'geometry', stylers: [{ color: '#E8E8E8' }] },
{ elementType: 'labels.icon', stylers: [{ visibility: 'off' }] },
{ elementType: 'labels.text.fill', stylers: [{ color: '#101010' }] },
{ elementType: 'labels.text.stroke', stylers: [{ color: '#F0F0F0' }] },
{
featureType: 'administrative',
elementType: 'geometry',
stylers: [{ color: '#000000' }],
},
{
featureType: 'landscape',
elementType: 'geometry',
stylers: [{ color: '#d3f8e2' }],
},
{
featureType: 'landscape.man_made',
elementType: 'geometry',
stylers: [{ color: '#f5f3f3' }],
},
{
featureType: 'landscape.natural.terrain',
elementType: 'geometry',
stylers: [{ color: '#b5efcd' }],
},
{
featureType: 'poi',
elementType: 'geometry',
stylers: [{ color: '#c3f1d5' }],
},
{
featureType: 'poi.medical',
elementType: 'geometry',
stylers: [{ color: '#fce8e6' }],
},
{
featureType: 'road',
elementType: 'geometry.fill',
stylers: [{ color: '#A0B0C0' }],
},
{
featureType: 'water',
elementType: 'geometry',
stylers: [{ color: '#7dd5e9' }],
},
],
dark: [
{ elementType: 'geometry', stylers: [{ color: '#252525' }] },
{ elementType: 'labels.icon', stylers: [{ visibility: 'off' }] },
{ elementType: 'labels.text.fill', stylers: [{ color: '#F0F0F0' }] },
{ elementType: 'labels.text.stroke', stylers: [{ color: '#101010' }] },
{
featureType: 'administrative',
elementType: 'geometry',
stylers: [{ color: '#FFFFFF' }],
},
{
featureType: 'landscape',
elementType: 'geometry',
stylers: [{ color: '#264131' }],
},
{
featureType: 'landscape.man_made',
elementType: 'geometry',
stylers: [{ color: '#202020' }],
},
{
featureType: 'landscape.natural.terrain',
elementType: 'geometry',
stylers: [{ color: '#253f30' }],
},
{
featureType: 'poi',
elementType: 'geometry',
stylers: [{ color: '#103010' }],
},
{
featureType: 'poi.medical',
elementType: 'geometry',
stylers: [{ color: '#483030' }],
},
{
featureType: 'road',
elementType: 'geometry.fill',
stylers: [{ color: '#A0A0A0' }],
},
{
featureType: 'water',
elementType: 'geometry',
stylers: [{ color: '#3E6A74' }],
},
],
}
const darkMapStyle = [
{ elementType: 'geometry', stylers: [{ color: '#212121' }] },
{ elementType: 'labels.icon', stylers: [{ visibility: 'off' }] },
{ elementType: 'labels.text.fill', stylers: [{ color: '#757575' }] },
{ elementType: 'labels.text.stroke', stylers: [{ color: '#212121' }] },
{
featureType: 'administrative',
elementType: 'geometry',
stylers: [{ color: '#757575' }],
},
{
featureType: 'poi',
elementType: 'geometry',
stylers: [{ color: '#282828' }],
},
{
featureType: 'road',
elementType: 'geometry.fill',
stylers: [{ color: '#383838' }],
},
{
featureType: 'water',
elementType: 'geometry',
stylers: [{ color: '#000000' }],
},
];
export const Fonts = Platform.select({
ios: {
/** iOS `UIFontDescriptorSystemDesignDefault` */
sans: 'system-ui',
/** iOS `UIFontDescriptorSystemDesignSerif` */
serif: 'ui-serif',
/** iOS `UIFontDescriptorSystemDesignRounded` */
rounded: 'ui-rounded',
/** iOS `UIFontDescriptorSystemDesignMonospaced` */
mono: 'ui-monospace',
},
default: {
sans: 'normal',
serif: 'serif',
rounded: 'normal',
mono: 'monospace',
},
web: {
sans: "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
serif: "Georgia, 'Times New Roman', serif",
rounded: "'SF Pro Rounded', 'Hiragino Maru Gothic ProN', Meiryo, 'MS PGothic', sans-serif",
mono: "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
},
});