UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

71 lines 1.93 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var theme_exports = {}; __export(theme_exports, { DarkTheme: () => DarkTheme, DefaultTheme: () => DefaultTheme }); module.exports = __toCommonJS(theme_exports); const WEB_FONT_STACK = 'system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'; const fonts = { regular: { fontFamily: WEB_FONT_STACK, fontWeight: "400" }, medium: { fontFamily: WEB_FONT_STACK, fontWeight: "500" }, bold: { fontFamily: WEB_FONT_STACK, fontWeight: "600" }, heavy: { fontFamily: WEB_FONT_STACK, fontWeight: "700" } }; const DefaultTheme = { dark: false, colors: { primary: "rgb(0, 122, 255)", background: "rgb(242, 242, 242)", card: "rgb(255, 255, 255)", text: "rgb(28, 28, 30)", border: "rgb(216, 216, 216)", notification: "rgb(255, 59, 48)" }, fonts }; const DarkTheme = { dark: true, colors: { primary: "rgb(10, 132, 255)", background: "rgb(1, 1, 1)", card: "rgb(18, 18, 18)", text: "rgb(229, 229, 231)", border: "rgb(39, 39, 41)", notification: "rgb(255, 69, 58)" }, fonts };