Coder Social home page Coder Social logo

Comments (1)

jaywcjlove avatar jaywcjlove commented on July 2, 2024

@emmajane1313

@media (prefers-color-scheme: dark) {
.@{w-textarea} {
--color-fg-default: #c9d1d9;
--color-canvas-subtle: #161b22;
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-markup-bold: #c9d1d9;
}
}
@media (prefers-color-scheme: light) {
.@{w-textarea} {
--color-fg-default: #24292f;
--color-canvas-subtle: #f6f8fa;
--color-prettylights-syntax-comment: #6e7781;
--color-prettylights-syntax-entity-tag: #116329;
--color-prettylights-syntax-entity: #8250df;
--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-string: #0a3069;
--color-prettylights-syntax-keyword: #cf222e;
--color-prettylights-syntax-markup-bold: #24292f;
}
}
.@{w-textarea}[data-color-mode*='dark'],
[data-color-mode*='dark'] .@{w-textarea},
[data-color-mode*='dark'] .@{w-textarea}-var,
body[data-color-mode*='dark'] {
--color-fg-default: #c9d1d9;
--color-canvas-subtle: #161b22;
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-markup-bold: #c9d1d9;
}
.@{w-textarea}[data-color-mode*='light'],
[data-color-mode*='light'] .@{w-textarea},
[data-color-mode*='light'] .@{w-textarea}-var,
body[data-color-mode*='light'] {
--color-fg-default: #24292f;
--color-canvas-subtle: #f6f8fa;
--color-prettylights-syntax-comment: #6e7781;
--color-prettylights-syntax-entity-tag: #116329;
--color-prettylights-syntax-entity: #8250df;
--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-string: #0a3069;
--color-prettylights-syntax-keyword: #cf222e;
--color-prettylights-syntax-markup-bold: #24292f;
}

from react-textarea-code-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.