@monochrome-edge/ui
Version:
A modern, minimalist UI with Warm and Cold themes
175 lines (147 loc) • 4.24 kB
CSS
/**
* Editor Theme Integration with Monochrome Edge
* This file ensures the editor uses ONLY Monochrome Edge theme variables
* No hardcoded colors allowed!
*/
/* Force all editor components to use Monochrome Edge variables */
.editor-wrapper,
.editor-content-wrapper,
.editor-content,
.editor-toolbar-container,
.ProseMirror {
/* Reset any hardcoded colors */
background: inherit ;
color: inherit ;
border-color: inherit ;
}
/* Editor wrapper - use theme background */
.editor-wrapper {
background: var(--theme-background) ;
color: var(--theme-text-primary) ;
}
/* Content wrapper */
.editor-content-wrapper {
background: var(--theme-background) ;
}
/* Editor content area */
.editor-content {
background: var(--theme-surface) ;
color: var(--theme-text-primary) ;
border: 1px solid var(--theme-border) ;
}
/* ProseMirror content */
.ProseMirror {
background: transparent ;
color: var(--theme-text-primary) ;
}
/* Toolbar */
.editor-toolbar-container {
background: var(--theme-surface) ;
border-bottom: 1px solid var(--theme-border) ;
}
/* Toolbar buttons */
.toolbar-btn {
background: transparent ;
color: var(--theme-text-secondary) ;
border: 1px solid transparent ;
}
.toolbar-btn:hover {
background: var(--theme-background) ;
color: var(--theme-text-primary) ;
border-color: var(--theme-border) ;
}
.toolbar-btn.active,
.toolbar-btn:active {
background: var(--theme-accent) ;
color: var(--theme-accent-contrast) ;
border-color: var(--theme-accent) ;
}
/* Text elements */
.editor-block,
.block-heading1,
.block-heading2,
.block-heading3,
.block-heading4,
.block-paragraph,
.block-bullet,
.block-number {
color: var(--theme-text-primary) ;
}
/* Secondary text */
.block-quote,
.list-marker,
.editor-block[data-placeholder]:empty:before {
color: var(--theme-text-secondary) ;
}
/* Accents */
.block-quote {
border-left-color: var(--theme-accent) ;
}
.editor-block a {
color: var(--theme-accent) ;
}
/* Floating toolbar */
.floating-toolbar {
background: var(--theme-surface) ;
border: 1px solid var(--theme-border) ;
}
.floating-toolbar button {
color: var(--theme-text-secondary) ;
}
.floating-toolbar button:hover {
background: var(--theme-background) ;
color: var(--theme-text-primary) ;
}
.floating-toolbar button.active {
background: var(--theme-accent) ;
color: var(--theme-accent-contrast) ;
}
/* Slash menu */
.slash-menu-enhanced {
background: var(--theme-surface) ;
border: 1px solid var(--theme-border) ;
}
.slash-menu-enhanced .menu-search {
background: var(--theme-background) ;
border-color: var(--theme-border) ;
color: var(--theme-text-primary) ;
}
.slash-menu-enhanced .menu-item {
color: var(--theme-text-primary) ;
}
.slash-menu-enhanced .menu-item:hover,
.slash-menu-enhanced .menu-item.selected {
background: var(--theme-background) ;
}
/* Code blocks */
.block-codeblock-wrapper {
background: var(--theme-surface) ;
border: 1px solid var(--theme-border) ;
}
.code-header {
background: var(--theme-background) ;
border-bottom: 1px solid var(--theme-border) ;
}
.code-language,
.code-copy-btn {
border-color: var(--theme-border) ;
color: var(--theme-text-secondary) ;
}
/* Tables */
.editor-table,
.editor-table td {
border-color: var(--theme-border) ;
}
.table-header .table-cell-content {
background: var(--theme-surface) ;
}
/* Status bar */
.editor-status-bar {
background: var(--theme-surface) ;
border-top: 1px solid var(--theme-border) ;
color: var(--theme-text-secondary) ;
}
/* Remove ALL transitions - let theme handle it */
* {
transition: none ;
}