A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
improvement: use light-dark() css function for easier overrides (#2680)
Myles Scolnickcd7466f72d5b
diff --git a/frontend/package.json b/frontend/package.jsonindex c5970e1403..0ab077d13a 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -169,6 +169,7 @@},"devDependencies": {"@biomejs/biome": "1.8.3",+ "@csstools/postcss-light-dark-function": "^2.0.5","@playwright/test": "^1.46.1","@storybook/addon-docs": "^8.2.9","@storybook/addon-essentials": "^8.2.9",diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yamlindex f37fd04fe2..bde005f830 100644--- a/frontend/pnpm-lock.yaml+++ b/frontend/pnpm-lock.yaml@@ -403,6 +403,9 @@ importers:'@biomejs/biome':specifier: 1.8.3version: 1.8.3+ '@csstools/postcss-light-dark-function':+ specifier: ^2.0.5+ version: 2.0.5([email protected])'@playwright/test':specifier: ^1.46.1version: 1.46.1@@ -1434,14 +1437,14 @@ packages:peerDependencies:'@bufbuild/protobuf': ^1.4.2- '@csstools/[email protected]':- resolution: {integrity: sha512-lSquqZCHxDfuTg/Sk2hiS0mcSFCEBuj49JfzPHJogDBT0mGCyY5A1AQzBWngitrp7i1/HAZpIgzF/VjhOEIJIg==}+ '@csstools/[email protected]':+ resolution: {integrity: sha512-6tC/MnlEvs5suR4Ahef4YlBccJDHZuxGsAlxXmybWjZ5jPxlzLSMlRZ9mVHSRvlD+CmtE7+hJ+UQbfXrws/rUQ==}engines: {node: '>=18'}peerDependencies:- '@csstools/css-tokenizer': ^3.0.1+ '@csstools/css-tokenizer': ^3.0.2- '@csstools/[email protected]':- resolution: {integrity: sha512-UBqaiu7kU0lfvaP982/o3khfXccVlHPWp0/vwwiIgDF0GmqqqxoiXC/6FCjlS9u92f7CoEz6nXKQnrn1kIAkOw==}+ '@csstools/[email protected]':+ resolution: {integrity: sha512-IuTRcD53WHsXPCZ6W7ubfGqReTJ9Ra0yRRFmXYP/Re8hFYYfoIYIK4080X5luslVLWimhIeFq0hj09urVMQzTw==}engines: {node: '>=18'}'@csstools/[email protected]':@@ -1451,12 +1454,30 @@ packages:'@csstools/css-parser-algorithms': ^3.0.1'@csstools/css-tokenizer': ^3.0.1+ '@csstools/[email protected]':+ resolution: {integrity: sha512-mSqqxuwlBg10YyErq2YYB71KtvWDueBYE9WAnC6B7GHU+z0ECcGf+sR9zxpvePGzesuBNDB+cp15cW2CvOyszA==}+ engines: {node: '>=18'}+ peerDependencies:+ postcss: ^8.4++ '@csstools/[email protected]':+ resolution: {integrity: sha512-XQPtROaQjomnvLUSy/bALTR5VCtTVUFwYs1SblvYgLSeTo2a/bMNwUwo2piXw5rTv/FEYiy5yPSXBqg9OKUx7Q==}+ engines: {node: '>=18'}+ peerDependencies:+ postcss: ^8.4+'@csstools/[email protected]':resolution: {integrity: sha512-189nelqtPd8++phaHNwYovKZI0FOzH1vQEE3QhHHkNIGrg5fSs9CbYP3RvfEH5geztnIA9Jwq91wyOIwAW5JIQ==}engines: {node: '>=18'}peerDependencies:postcss-selector-parser: ^6.1.0+ '@csstools/[email protected]':+ resolution: {integrity: sha512-5VdOr0Z71u+Yp3ozOx8T11N703wIFGVRgOWbOZMKgglPJsWA54MRIoMNVMa7shUToIhx5J8vX4sOZgD2XiihiQ==}+ engines: {node: '>=18'}+ peerDependencies:+ postcss: ^8.4+'@dagrejs/[email protected]':resolution: {integrity: sha512-QUTc54Cg/wvmlEUxB+uvoPVKFazM1H18kVHBQNmK2NbrDR5ihOCR6CXLnDSZzMcSQKJtabPUWridBOlJM3WkDg==}@@ -1879,6 +1900,7 @@ packages:'@humanwhocodes/[email protected]':resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==}engines: {node: '>=10.10.0'}+ deprecated: Use @eslint/config-array instead'@humanwhocodes/[email protected]':resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}@@ -1886,6 +1908,7 @@ packages:'@humanwhocodes/[email protected]':resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}+ deprecated: Use @eslint/object-schema instead'@iconify/[email protected]':resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}@@ -3577,6 +3600,7 @@ packages:'@storybook/[email protected]':resolution: {integrity: sha512-JSBZMOrSw/3rlq5YoEI7Qyq703KSNP0Jd+gxTWu3/tP6245mpjn2dXnR8FvqVxCi+FG4lt2kQyPzgsuwEw1SSA==}+ deprecated: 'This package has been split into @storybook/addon-styling-webpack and @storybook/addon-themes. More info: https://github.com/storybookjs/addon-styling'hasBin: truepeerDependencies:less: ^3.5.0 || ^4.0.0@@ -3778,6 +3802,7 @@ packages:'@storybook/[email protected]':resolution: {integrity: sha512-L8sXFJUHmrlyU2BsWWZGuAjv39Jl1uAqUHdxmN42JY15M4+XCMjGlArdCCjDe1wpTSW6USYISA9axjZojgtvnw==}+ deprecated: In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. When upgrading to Storybook 8 with 'npx storybook@latest upgrade', you will get prompted and will get an automigration for the new package. Please migrate when you can.'@storybook/[email protected]':resolution: {integrity: sha512-frBkvH7LF8j23ODaywLK4m4LLscw49oKblkZ+30QZkBAzRf2o3a/QSZW2V1zfBo7ygcXiUJ5bIjh7Y17mMJqbQ==}@@ -4142,6 +4167,7 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-IyNhGHu71jH1jCXTHmafuoAAdsbBON3kDh7u/UUhLmjYgN5TYB54e1R8ckTCiIevl2UuZaCsi9XRxineY5yUjw==}+ deprecated: This is a stub types definition. fast-json-stable-stringify provides its own type definitions, so you do not need this installed.'@types/[email protected]':resolution: {integrity: sha512-1eKvCaIBdrD2mmMgy5dwh564rVvfEhZTWVQQGRNn0Nt4ZEnJ0C8oSUCzvMKRA4lGde5oEVo+q2MrTTbV/GHDCQ==}@@ -5952,6 +5978,7 @@ packages:resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.hasBin: true@@ -6305,9 +6332,11 @@ packages:resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}+ deprecated: Glob versions prior to v9 are no longer supportedresolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==}+ deprecated: Glob versions prior to v9 are no longer supportedresolution: {integrity: sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==}@@ -6417,6 +6446,7 @@ packages:resolution: {integrity: sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==}engines: {node: '>=6'}+ deprecated: this library is no longer supportedresolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}@@ -6592,6 +6622,7 @@ packages:resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}+ deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}@@ -7394,6 +7425,7 @@ packages:resolution: {integrity: sha512-VAFIOG6rsxoc7q/IaY3jdjmrsuX9f15KlRLYTHmixASBZkZEKC1IFqE2BC5CdhXmK6WLM1Re33z//AGmeRI6FA==}+ deprecated: Redundant dependency in your project.resolution: {integrity: sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==}@@ -8524,6 +8556,7 @@ packages:resolution: {integrity: sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==}engines: {node: '>= 6'}+ deprecated: request has been deprecated, see https://github.com/request/request/issues/3142resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}@@ -8588,10 +8621,12 @@ packages:resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==}+ deprecated: Rimraf versions prior to v4 are no longer supportedhasBin: trueresolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}+ deprecated: Rimraf versions prior to v4 are no longer supportedhasBin: true@@ -9197,6 +9232,7 @@ packages:resolution: {integrity: sha512-JLFtrhClUH/k/yvsiCXqcWcXaOfO3DgFvHnYb+gS2xlDbjbvkKh6YB1CPilmEV++tH33xw6wCxoYA5g6YLZw/Q==}+ deprecated: Use topojson-client, topojson-server or topojson-simplify directly.hasBin: true@@ -9509,6 +9545,7 @@ packages:resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==}+ deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.hasBin: true@@ -11166,21 +11203,38 @@ snapshots:dependencies:'@bufbuild/protobuf': 1.10.0- '@csstools/[email protected](@csstools/[email protected])':+ '@csstools/[email protected](@csstools/[email protected])':dependencies:- '@csstools/css-tokenizer': 3.0.1+ '@csstools/css-tokenizer': 3.0.2- '@csstools/[email protected]': {}+ '@csstools/[email protected]': {}- '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':dependencies:- '@csstools/css-parser-algorithms': 3.0.1(@csstools/[email protected])- '@csstools/css-tokenizer': 3.0.1+ '@csstools/css-parser-algorithms': 3.0.2(@csstools/[email protected])+ '@csstools/css-tokenizer': 3.0.2++ '@csstools/[email protected]([email protected])':+ dependencies:+ '@csstools/css-parser-algorithms': 3.0.2(@csstools/[email protected])+ '@csstools/css-tokenizer': 3.0.2+ '@csstools/postcss-progressive-custom-properties': 4.0.0([email protected])+ '@csstools/utilities': 2.0.0([email protected])+ postcss: 8.4.47++ '@csstools/[email protected]([email protected])':+ dependencies:+ postcss: 8.4.47+ postcss-value-parser: 4.2.0'@csstools/[email protected]([email protected])':dependencies:postcss-selector-parser: 6.1.2+ '@csstools/[email protected]([email protected])':+ dependencies:+ postcss: 8.4.47+'@dagrejs/[email protected]':dependencies:'@dagrejs/graphlib': 2.2.4@@ -20447,9 +20501,9 @@ snapshots:dependencies:- '@csstools/css-parser-algorithms': 3.0.1(@csstools/[email protected])- '@csstools/css-tokenizer': 3.0.1- '@csstools/media-query-list-parser': 3.0.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-parser-algorithms': 3.0.2(@csstools/[email protected])+ '@csstools/css-tokenizer': 3.0.2+ '@csstools/media-query-list-parser': 3.0.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])'@csstools/selector-specificity': 4.0.0([email protected])'@dual-bundle/import-meta-resolve': 4.1.0balanced-match: 2.0.0diff --git a/frontend/postcss.config.cjs b/frontend/postcss.config.cjsindex d4ad7ae8ec..b016a6a9c2 100644--- a/frontend/postcss.config.cjs+++ b/frontend/postcss.config.cjs@@ -9,6 +9,7 @@ const config = {}): undefined,process.env.NODE_ENV === "production" ? require("cssnano") : undefined,+ require("@csstools/postcss-light-dark-function"),require("autoprefixer"),],};diff --git a/frontend/src/css/admonition.css b/frontend/src/css/admonition.cssindex 72441215ba..9e17073ebc 100644--- a/frontend/src/css/admonition.css+++ b/frontend/src/css/admonition.css@@ -45,11 +45,10 @@--admonition-heading-color: var(--blue-11);&::before {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="admonition-icon lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>');-- .dark & {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="admonition-icon lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>');- }+ content: light-dark(+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="admonition-icon lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>'),+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="admonition-icon lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>')+ );}}@@ -61,11 +60,10 @@--admonition-heading-color: var(--red-11);&::before {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-octagon-alert"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>');-- .dark & {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-octagon-alert"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>');- }+ content: light-dark(+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-octagon-alert"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>'),+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-octagon-alert"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>')+ );}}@@ -76,11 +74,10 @@--admonition-heading-color: var(--yellow-11);&::before {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-alert"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>');-- .dark & {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-alert"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>');- }+ content: light-dark(+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-alert"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>'),+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-alert"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>')+ );}}@@ -94,11 +91,10 @@}&::before {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>');-- .dark & {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>');- }+ content: light-dark(+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>'),+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>')+ );}}@@ -108,11 +104,10 @@--admonition-heading-color: var(--cyan-11);&::before {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square-warning"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v2"/><path d="M12 13h.01"/></svg>');-- .dark & {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square-warning"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v2"/><path d="M12 13h.01"/></svg>');- }+ content: light-dark(+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square-warning"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v2"/><path d="M12 13h.01"/></svg>'),+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square-warning"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v2"/><path d="M12 13h.01"/></svg>')+ );}}@@ -122,10 +117,9 @@--admonition-heading-color: var(--grass-11);&::before {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lightbulb"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>');-- .dark & {- content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lightbulb"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>');- }+ content: light-dark(+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lightbulb"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>'),+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="60%" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lightbulb"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>')+ );}}diff --git a/frontend/src/css/codehilite.css b/frontend/src/css/codehilite.cssindex 7c03fd3fcb..7c452240e5 100644--- a/frontend/src/css/codehilite.css+++ b/frontend/src/css/codehilite.css@@ -6,137 +6,70 @@@layer base {:root {- --linenos-special: #000;- --linenos-special-bg: #ffffc0;- --codehilite-hll: #ffc;- --codehilite-c: #177500;- --codehilite-err: #000;- --codehilite-k: #cf222e;- --codehilite-l: #1c01ce;- --codehilite-n: #000;- --codehilite-o: #000;- --codehilite-ch: #177500;- --codehilite-cm: #177500;- --codehilite-cp: #633820;- --codehilite-cpf: #177500;- --codehilite-c1: #177500;- --codehilite-cs: #177500;- --codehilite-kc: #a90d91;- --codehilite-kd: #a90d91;- --codehilite-kn: #a90d91;- --codehilite-kp: #a90d91;- --codehilite-kr: #a90d91;- --codehilite-kt: #cf222e;- --codehilite-ld: #1c01ce;- --codehilite-m: #0550ae;- --codehilite-s: #0a3069;- --codehilite-na: #836c28;- --codehilite-nb: #cf222e;- --codehilite-nc: #8250df;- --codehilite-no: #000;- --codehilite-nd: #8250df;- --codehilite-ni: #000;- --codehilite-ne: #000;- --codehilite-nf: #8250df;- --codehilite-nl: #000;- --codehilite-nn: #000;- --codehilite-nx: #000;- --codehilite-py: #000;- --codehilite-nt: #8250df;- --codehilite-nv: #000;- --codehilite-ow: #000;- --codehilite-mb: #1c01ce;- --codehilite-mf: #1c01ce;- --codehilite-mh: #1c01ce;- --codehilite-mi: #1c01ce;- --codehilite-mo: #1c01ce;- --codehilite-sa: #0a3069;- --codehilite-sb: #0a3069;- --codehilite-sc: #0a3069;- --codehilite-dl: #0a3069;- --codehilite-sd: #0a3069;- --codehilite-s2: #0a3069;- --codehilite-se: #0a3069;- --codehilite-sh: #0a3069;- --codehilite-si: #0a3069;- --codehilite-sx: #0a3069;- --codehilite-sr: #0a3069;- --codehilite-s1: #0a3069;- --codehilite-ss: #0a3069;- --codehilite-bp: #5b269a;- --codehilite-fm: #000;- --codehilite-vc: #000;- --codehilite-vg: #000;- --codehilite-vi: #000;- --codehilite-vm: #000;- --codehilite-il: #1c01ce;- }-- .dark {- --linenos-special: #fff;- --linenos-special-bg: #303030;- --codehilite-hll: #303030;- --codehilite-c: #88ff70;- --codehilite-err: #f00;- --codehilite-k: #ff5572;- --codehilite-l: #7289da;- --codehilite-n: #fff;- --codehilite-o: #fff;- --codehilite-ch: #88ff70;- --codehilite-cm: #88ff70;- --codehilite-cp: #ffcc80;- --codehilite-cpf: #88ff70;- --codehilite-c1: #88ff70;- --codehilite-cs: #88ff70;- --codehilite-kc: #ff80bf;- --codehilite-kd: #ff80bf;- --codehilite-kn: #ff80bf;- --codehilite-kp: #ff80bf;- --codehilite-kr: #ff80bf;- --codehilite-kt: #ff5572;- --codehilite-ld: #7289da;- --codehilite-m: #55a8ff;- --codehilite-s: #5af;- --codehilite-na: #ffcc80;- --codehilite-nb: #ff5572;- --codehilite-nc: #b39ddb;- --codehilite-no: #fff;- --codehilite-nd: #b39ddb;- --codehilite-ni: #fff;- --codehilite-ne: #fff;- --codehilite-nf: #b39ddb;- --codehilite-nl: #fff;- --codehilite-nn: #fff;- --codehilite-nx: #fff;- --codehilite-py: #fff;- --codehilite-nt: #b39ddb;- --codehilite-nv: #fff;- --codehilite-ow: #fff;- --codehilite-mb: #7289da;- --codehilite-mf: #7289da;- --codehilite-mh: #7289da;- --codehilite-mi: #7289da;- --codehilite-mo: #7289da;- --codehilite-sa: #5af;- --codehilite-sb: #5af;- --codehilite-sc: #5af;- --codehilite-dl: #5af;- --codehilite-sd: #5af;- --codehilite-s2: #5af;- --codehilite-se: #5af;- --codehilite-sh: #5af;- --codehilite-si: #5af;- --codehilite-sx: #5af;- --codehilite-sr: #5af;- --codehilite-s1: #5af;- --codehilite-ss: #5af;- --codehilite-bp: #9c4dcc;- --codehilite-fm: #fff;- --codehilite-vc: #fff;- --codehilite-vg: #fff;- --codehilite-vi: #fff;- --codehilite-vm: #fff;- --codehilite-il: #7289da;+ --linenos-special: light-dark(#000, #fff);+ --linenos-special-bg: light-dark(#ffffc0, #303030);+ --codehilite-hll: light-dark(#ffc, #303030);+ --codehilite-c: light-dark(#177500, #88ff70);+ --codehilite-err: light-dark(#000, #f00);+ --codehilite-k: light-dark(#cf222e, #ff5572);+ --codehilite-l: light-dark(#1c01ce, #7289da);+ --codehilite-n: light-dark(#000, #fff);+ --codehilite-o: light-dark(#000, #fff);+ --codehilite-ch: light-dark(#177500, #88ff70);+ --codehilite-cm: light-dark(#177500, #88ff70);+ --codehilite-cp: light-dark(#633820, #ffcc80);+ --codehilite-cpf: light-dark(#177500, #88ff70);+ --codehilite-c1: light-dark(#177500, #88ff70);+ --codehilite-cs: light-dark(#177500, #88ff70);+ --codehilite-kc: light-dark(#a90d91, #ff80bf);+ --codehilite-kd: light-dark(#a90d91, #ff80bf);+ --codehilite-kn: light-dark(#a90d91, #ff80bf);+ --codehilite-kp: light-dark(#a90d91, #ff80bf);+ --codehilite-kr: light-dark(#a90d91, #ff80bf);+ --codehilite-kt: light-dark(#cf222e, #ff5572);+ --codehilite-ld: light-dark(#1c01ce, #7289da);+ --codehilite-m: light-dark(#0550ae, #55a8ff);+ --codehilite-s: light-dark(#0a3069, #5af);+ --codehilite-na: light-dark(#836c28, #ffcc80);+ --codehilite-nb: light-dark(#cf222e, #ff5572);+ --codehilite-nc: light-dark(#8250df, #b39ddb);+ --codehilite-no: light-dark(#000, #fff);+ --codehilite-nd: light-dark(#8250df, #b39ddb);+ --codehilite-ni: light-dark(#000, #fff);+ --codehilite-ne: light-dark(#000, #fff);+ --codehilite-nf: light-dark(#8250df, #b39ddb);+ --codehilite-nl: light-dark(#000, #fff);+ --codehilite-nn: light-dark(#000, #fff);+ --codehilite-nx: light-dark(#000, #fff);+ --codehilite-py: light-dark(#000, #fff);+ --codehilite-nt: light-dark(#8250df, #b39ddb);+ --codehilite-nv: light-dark(#000, #fff);+ --codehilite-ow: light-dark(#000, #fff);+ --codehilite-mb: light-dark(#1c01ce, #7289da);+ --codehilite-mf: light-dark(#1c01ce, #7289da);+ --codehilite-mh: light-dark(#1c01ce, #7289da);+ --codehilite-mi: light-dark(#1c01ce, #7289da);+ --codehilite-mo: light-dark(#1c01ce, #7289da);+ --codehilite-sa: light-dark(#0a3069, #5af);+ --codehilite-sb: light-dark(#0a3069, #5af);+ --codehilite-sc: light-dark(#0a3069, #5af);+ --codehilite-dl: light-dark(#0a3069, #5af);+ --codehilite-sd: light-dark(#0a3069, #5af);+ --codehilite-s2: light-dark(#0a3069, #5af);+ --codehilite-se: light-dark(#0a3069, #5af);+ --codehilite-sh: light-dark(#0a3069, #5af);+ --codehilite-si: light-dark(#0a3069, #5af);+ --codehilite-sx: light-dark(#0a3069, #5af);+ --codehilite-sr: light-dark(#0a3069, #5af);+ --codehilite-s1: light-dark(#0a3069, #5af);+ --codehilite-ss: light-dark(#0a3069, #5af);+ --codehilite-bp: light-dark(#5b269a, #9c4dcc);+ --codehilite-fm: light-dark(#000, #fff);+ --codehilite-vc: light-dark(#000, #fff);+ --codehilite-vg: light-dark(#000, #fff);+ --codehilite-vi: light-dark(#000, #fff);+ --codehilite-vm: light-dark(#000, #fff);+ --codehilite-il: light-dark(#1c01ce, #7289da);}}diff --git a/frontend/src/css/globals.css b/frontend/src/css/globals.cssindex 90a8279fd2..12759f57da 100644--- a/frontend/src/css/globals.css+++ b/frontend/src/css/globals.css@@ -28,32 +28,41 @@@tailwind utilities;@layer base {- :root,- .marimo {+ :root {color-scheme: light;+ }+ :root,+ .marimo {--monospace-font: var(--marimo-monospace-font, 'Fira Mono', monospace);--text-font: var(--marimo-text-font, 'PT Sans', sans-serif);--heading-font: var(--marimo-heading-font, 'Lora', serif);- /* Radix light colors for reference: https://github.com/radix-ui/colors/blob/main/src/light.ts */+ --radius: 8px;++ /* Radix light colors: https://github.com/radix-ui/colors/blob/main/src/light.ts */+ /* Radix dark colors: https://github.com/radix-ui/colors/blob/main/src/dark.ts */++ /* Base colors. */+ --background: light-dark(hsl(0deg 0% 100%), hsl(150deg 7.7% 10.2%));+ --foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 7% 93%));+ --muted: light-dark(hsl(210deg 40% 96.1%), hsl(180deg 14% 1%));+ --muted-foreground: light-dark(hsl(215.4deg 16.3% 46.9%), hsl(155deg 5% 68.3%));+ --popover: light-dark(hsl(0deg 0% 100%), hsl(151deg 5.5% 15.2%));+ --popover-foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 5% 68.3%));+ --card: light-dark(hsl(0deg 0% 100%), hsl(151deg 5.5% 15.2%));+ --card-foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 5% 76.3%));+ --border: light-dark(hsl(214.3deg 31.8% 91.4%), hsl(153deg 3.7% 24.2%));+ --input: light-dark(hsl(0deg 0% 64%), hsl(154deg 3.3% 28.7%));+ --primary: light-dark(hsl(208deg 93.5% 47.4%), hsl(192deg 59.8% 39%));+ --primary-foreground: light-dark(hsl(210deg 40% 98%), hsl(190deg 80% 84%));+ --secondary: light-dark(hsl(210deg 40% 96.1%), hsl(155deg 7% 93%));+ --secondary-foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(151deg 5.5% 15.2%));+ --accent: light-dark(hsl(209deg 100% 96.5%), hsl(192deg 56.6% 26.5%));+ --accent-foreground: light-dark(hsl(211deg 90% 42%), hsl(190deg 80% 84%));+ --ring: hsl(215deg 20.2% 65.1%);- --background: hsl(0deg 0% 100%);- --foreground: hsl(222.2deg 47.4% 11.2%);- --muted: hsl(210deg 40% 96.1%);- --muted-foreground: hsl(215.4deg 16.3% 46.9%);- --popover: hsl(0deg 0% 100%);- --popover-foreground: hsl(222.2deg 47.4% 11.2%);- --card: hsl(0deg 0% 100%);- --card-foreground: hsl(222.2deg 47.4% 11.2%);- --border: hsl(214.3deg 31.8% 91.4%);- --input: hsl(0deg 0% 64%); /* tailwind slate-400 */- --primary: hsl(208deg 93.5% 47.4%); /* blue-10 */- --primary-foreground: hsl(210deg 40% 98%);- --secondary: hsl(210deg 40% 96.1%);- --secondary-foreground: hsl(222.2deg 47.4% 11.2%);- --accent: hsl(209deg 100% 96.5%); /* blue-3 */- --accent-foreground: hsl(211deg 90% 42%); /* blue-11 */+ /* Semantic colors. */--destructive: hsl(0deg 100% 70%);--destructive-foreground: hsl(210deg 40% 98%);--error: hsl(0deg 77% 64%);@@ -63,48 +72,19 @@--action: hsl(52deg 96.8% 82%);--action-hover: hsl(54deg 100% 86.7%);--action-foreground: hsl(42deg 100% 29%);- --link: hsl(211deg 90% 42%); /* blue-11 */- --link-visited: hsl(272deg 51% 54%); /* purple-9 */+ --link: light-dark(hsl(211deg 90% 42%), hsl(211deg 90% 62%));+ --link-visited: light-dark(hsl(272deg 51% 54%), hsl(272deg 51% 74%));--stale: hsl(42deg 56% 44% / 25%);- --ring: hsl(215deg 20.2% 65.1%);- --radius: 8px;- --base-shadow: hsl(0deg 0% 85% / 40%);- --base-shadow-darker: hsl(0deg 0% 50% / 40%);- --base-shadow-opacity: 5%;++ /* Base shadows. */+ --base-shadow: light-dark(hsl(0deg 0% 85% / 40%), hsla(0deg 0% 36% / 60%));+ --base-shadow-darker: light-dark(hsl(0deg 0% 50% / 40%), hsl(0deg 0% 50% / 60%));+ --base-shadow-opacity: light-dark(5%, 85%);}.dark,.marimo:is(.dark *) {color-scheme: dark;-- /* Radix dark colors for reference: https://github.com/radix-ui/colors/blob/main/src/dark.ts */-- --background: hsl(150deg 7.7% 10.2%); /* sage-2 */- --foreground: hsl(155deg 7% 93%); /* sage-12 */- --muted: hsl(180deg 14% 1%); /* sage-3 */- --muted-foreground: hsl(155deg 5% 68.3%); /* sage-11 */- --popover: hsl(151deg 5.5% 15.2%); /* sage-3 */- --popover-foreground: hsl(155deg 5% 68.3%); /* sage-11 */- --card: hsl(151deg 5.5% 15.2%); /* sage-3 */- --card-foreground: hsl(155deg 5% 76.3%); /* sage-11, modified */- --border: hsl(153deg 3.7% 24.2%); /* sage-6 */- --input: hsl(154deg 3.3% 28.7%); /* sage-7 */- --primary: hsl(192deg 59.8% 39%); /* cyan-8 */- --primary-foreground: hsl(190deg 80% 84%); /* cyan-12 */- --secondary: hsl(155deg 7% 93%); /* sage-12 */- --secondary-foreground: hsl(151deg 5.5% 15.2%); /* sage-3 */- --destructive: hsl(0deg 100% 70%); /* red-10 */- --destructive-foreground: hsl(210deg 40% 98%); /* red-1 */- --accent: hsl(192deg 56.6% 26.5%); /* cyan-7 */- --accent-foreground: hsl(190deg 80% 84%); /* cyan-12 */- --stale: hsl(42deg 56% 44% / 25%);- --link: hsl(211deg 90% 62%); /* blue-11 */- --link-visited: hsl(272deg 51% 74%); /* purple-9 */-- /* Base shadows. */- --base-shadow: hsla(0deg 0% 36% / 60%);- --base-shadow-darker: hsl(0deg 0% 50% / 60%);- --base-shadow-opacity: 85%;}}