<style> * {<br /> margin: 0;<br /> padding: 0;<br /> box-sizing: border-box;<br /> }<br /> body {<br /> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;<br /> color: #1e293b;<br /> line-height: 1.5;<br /> }<br /> .containertw {<br /> width: 1280px;<br /> height: 575px;<br /> margin: 0 auto;<br /> display: flex;<br /> background: #ffffff;<br /> border-radius: 12px;<br /> }<br /> .jeg_topbar .containertw {<br /> display: block;<br /> overflow: visible;<br /> }<br /> /* Sidebar */<br /> .sidebar {<br /> width: 320px;<br /> padding: 20px;<br /> border-right: 1px solid #e2e8f0;<br /> display: flex;<br /> flex-direction: column;<br /> gap: 14px;<br /> overflow-y: auto;<br /> }<br /> .sidebar-title {<br /> font-size: 18px;<br /> font-weight: 700;<br /> color: #0f172a;<br /> margin-bottom: 2px;<br /> }<br /> .sidebar-desc {<br /> font-size: 12px;<br /> color: #64748b;<br /> line-height: 1.4;<br /> }<br /> .input-section {<br /> margin-top: 4px;<br /> }<br /> .input-label {<br /> display: flex;<br /> justify-content: space-between;<br /> align-items: center;<br /> margin-bottom: 8px;<br /> }<br /> .input-label span {<br /> font-size: 13px;<br /> font-weight: 600;<br /> color: #374151;<br /> }<br /> .format-badge {<br /> font-size: 11px;<br /> color: #64748b;<br /> display: flex;<br /> align-items: center;<br /> gap: 6px;<br /> }<br /> .color-input-wrapper {<br /> display: flex;<br /> align-items: center;<br /> gap: 10px;<br /> padding: 10px 14px;<br /> border: 1px solid #e2e8f0;<br /> border-radius: 8px;<br /> background: #fff;<br /> transition: border-color 0.2s, box-shadow 0.2s;<br /> }<br /> .color-input-wrapper:focus-within {<br /> border-color: var(--primary-color, #FF20B8);<br /> box-shadow: 0 0 0 3px rgba(4, 111, 54, 0.1);<br /> }<br /> .color-preview {<br /> width: 24px;<br /> height: 24px;<br /> border-radius: 50%;<br /> border: 2px solid #e2e8f0;<br /> cursor: pointer;<br /> transition: transform 0.2s;<br /> }<br /> .color-preview:hover {<br /> transform: scale(1.1);<br /> }<br /> .color-picker {<br /> position: absolute;<br /> opacity: 0;<br /> width: 24px;<br /> height: 24px;<br /> cursor: pointer;<br /> }<br /> .color-preview-containertw {<br /> position: relative;<br /> }<br /> .hex-input {<br /> flex: 1;<br /> border: none;<br /> font-size: 14px;<br /> font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;<br /> color: #374151;<br /> outline: none;<br /> text-transform: uppercase;<br /> }<br /> .copy-btn {<br /> background: none;<br /> border: none;<br /> cursor: pointer;<br /> padding: 4px;<br /> color: #94a3b8;<br /> transition: color 0.2s;<br /> }<br /> .copy-btn:hover {<br /> color: #64748b;<br /> }<br /> .btn {<br /> display: flex;<br /> align-items: center;<br /> justify-content: center;<br /> gap: 6px;<br /> padding: 10px 16px;<br /> border-radius: 8px;<br /> font-size: 13px;<br /> font-weight: 600;<br /> cursor: pointer;<br /> transition: all 0.2s;<br /> }<br /> .btn-outline {<br /> background: #fff;<br /> border: 1px solid #e2e8f0;<br /> color: #374151;<br /> }<br /> .btn-outline:hover {<br /> background: #f8fafc;<br /> border-color: #cbd5e1;<br /> }<br /> .btn-primary {<br /> background: var(--primary-color, #FF20B8);<br /> border: none;<br /> color: #fff;<br /> }<br /> .btn-primary:hover {<br /> opacity: 0.9;<br /> }<br /> .btn-small {<br /> padding: 6px 10px;<br /> font-size: 11px;<br /> }<br /> /* Saved Palettes Section */<br /> .saved-section {<br /> border-top: 1px solid #e2e8f0;<br /> padding-top: 12px;<br /> }<br /> .saved-title {<br /> font-size: 12px;<br /> font-weight: 600;<br /> color: #374151;<br /> margin-bottom: 8px;<br /> display: flex;<br /> justify-content: space-between;<br /> align-items: center;<br /> }<br /> .saved-palettes {<br /> display: flex;<br /> flex-direction: column;<br /> gap: 6px;<br /> max-height: 100px;<br /> overflow-y: auto;<br /> }<br /> .saved-palette {<br /> display: flex;<br /> align-items: center;<br /> gap: 8px;<br /> padding: 6px 8px;<br /> background: #f8fafc;<br /> border-radius: 6px;<br /> cursor: pointer;<br /> transition: background 0.2s;<br /> }<br /> .saved-palette:hover {<br /> background: #f1f5f9;<br /> }<br /> .saved-palette-preview {<br /> display: flex;<br /> gap: 2px;<br /> }<br /> .saved-palette-dot {<br /> width: 12px;<br /> height: 12px;<br /> border-radius: 2px;<br /> }<br /> .saved-palette-name {<br /> flex: 1;<br /> font-size: 11px;<br /> color: #374151;<br /> }<br /> .saved-palette-delete {<br /> background: none;<br /> border: none;<br /> color: #94a3b8;<br /> cursor: pointer;<br /> padding: 2px;<br /> font-size: 14px;<br /> line-height: 1;<br /> }<br /> .saved-palette-delete:hover {<br /> color: #ef4444;<br /> }<br /> /* Main Content */<br /> .main-content {<br /> flex: 1;<br /> padding: 20px;<br /> overflow-y: auto;<br /> }<br /> .header {<br /> display: flex;<br /> justify-content: space-between;<br /> align-items: center;<br /> margin-bottom: 12px;<br /> }<br /> .palette-title {<br /> font-size: 14px;<br /> color: #64748b;<br /> }<br /> .save-btn {<br /> display: flex;<br /> align-items: center;<br /> gap: 5px;<br /> padding: 8px 14px;<br /> background: #fff;<br /> border: 1px solid #e2e8f0;<br /> border-radius: 6px;<br /> font-size: 12px;<br /> font-weight: 500;<br /> color: #374151;<br /> cursor: pointer;<br /> transition: all 0.2s;<br /> }<br /> .save-btn:hover {<br /> background: #f8fafc;<br /> }<br /> .color-section {<br /> margin-bottom: 16px;<br /> }<br /> .color-header {<br /> display: flex;<br /> justify-content: space-between;<br /> align-items: center;<br /> margin-bottom: 10px;<br /> }<br /> .color-name {<br /> font-size: 15px;<br /> font-weight: 600;<br /> color: #0f172a;<br /> }<br /> .color-actions {<br /> display: flex;<br /> gap: 12px;<br /> }<br /> .color-action {<br /> font-size: 12px;<br /> color: #64748b;<br /> cursor: pointer;<br /> transition: color 0.2s;<br /> background: none;<br /> border: none;<br /> }<br /> .color-action:hover {<br /> color: #374151;<br /> }<br /> .color-scale {<br /> display: flex;<br /> gap: 4px;<br /> }<br /> .color-swatch {<br /> flex: 1;<br /> height: 48px;<br /> border-radius: 6px;<br /> display: flex;<br /> flex-direction: column;<br /> align-items: center;<br /> justify-content: center;<br /> cursor: pointer;<br /> transition: transform 0.2s, box-shadow 0.2s;<br /> position: relative;<br /> }<br /> .color-swatch:hover {<br /> transform: translateY(-2px);<br /> box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);<br /> z-index: 10;<br /> }<br /> .swatch-label {<br /> font-size: 9px;<br /> font-weight: 600;<br /> margin-bottom: 1px;<br /> }<br /> .swatch-hex {<br /> font-size: 8px;<br /> font-family: 'SF Mono', Monaco, monospace;<br /> text-transform: uppercase;<br /> }<br /> .contrast-badge {<br /> position: absolute;<br /> top: 2px;<br /> right: 2px;<br /> font-size: 7px;<br /> font-weight: 700;<br /> padding: 1px 3px;<br /> border-radius: 2px;<br /> background: rgba(0,0,0,0.2);<br /> }<br /> .contrast-badge.pass {<br /> background: rgba(34, 197, 94, 0.9);<br /> color: #fff;<br /> }<br /> .contrast-badge.fail {<br /> background: rgba(239, 68, 68, 0.9);<br /> color: #fff;<br /> }<br /> .copied-tooltip {<br /> position: absolute;<br /> top: -24px;<br /> background: #0f172a;<br /> color: #fff;<br /> padding: 3px 6px;<br /> border-radius: 4px;<br /> font-size: 10px;<br /> opacity: 0;<br /> pointer-events: none;<br /> transition: opacity 0.2s;<br /> }<br /> .color-swatch.copied .copied-tooltip {<br /> opacity: 1;<br /> }<br /> /* Export Modal */<br /> .modal-overlay {<br /> position: fixed;<br /> inset: 0;<br /> background: rgba(0, 0, 0, 0.5);<br /> display: none;<br /> align-items: center;<br /> justify-content: center;<br /> z-index: 1000;<br /> }<br /> .modal-overlay.show {<br /> display: flex;<br /> }<br /> .modal {<br /> background: #fff;<br /> border-radius: 12px;<br /> padding: 20px;<br /> width: 500px;<br /> max-height: 80vh;<br /> overflow-y: auto;<br /> }<br /> .modal-header {<br /> display: flex;<br /> justify-content: space-between;<br /> align-items: center;<br /> margin-bottom: 16px;<br /> }<br /> .modal-title {<br /> font-size: 16px;<br /> font-weight: 700;<br /> color: #0f172a;<br /> }<br /> .modal-close {<br /> background: none;<br /> border: none;<br /> font-size: 20px;<br /> cursor: pointer;<br /> color: #64748b;<br /> }<br /> .export-tabs {<br /> display: flex;<br /> gap: 4px;<br /> margin-bottom: 12px;<br /> border-bottom: 1px solid #e2e8f0;<br /> padding-bottom: 8px;<br /> }<br /> .export-tab {<br /> padding: 6px 12px;<br /> border: none;<br /> background: none;<br /> font-size: 12px;<br /> font-weight: 500;<br /> color: #64748b;<br /> cursor: pointer;<br /> border-radius: 6px;<br /> transition: all 0.2s;<br /> }<br /> .export-tab.active {<br /> background: var(--primary-color, #FF20B8);<br /> color: #fff;<br /> }<br /> .export-tab:hover:not(.active) {<br /> background: #f1f5f9;<br /> }<br /> .export-content {<br /> background: #1e293b;<br /> border-radius: 8px;<br /> padding: 12px;<br /> max-height: 300px;<br /> overflow-y: auto;<br /> }<br /> .export-content pre {<br /> font-family: 'SF Mono', Monaco, monospace;<br /> font-size: 11px;<br /> color: #e2e8f0;<br /> white-space: pre-wrap;<br /> margin: 0;<br /> }<br /> .modal-actions {<br /> display: flex;<br /> justify-content: flex-end;<br /> gap: 8px;<br /> margin-top: 16px;<br /> }<br /> /* Contrast Grid Modal */<br /> .contrast-grid {<br /> display: grid;<br /> grid-template-columns: repeat(6, 1fr);<br /> gap: 4px;<br /> }<br /> .contrast-cell {<br /> aspect-ratio: 1;<br /> display: flex;<br /> flex-direction: column;<br /> align-items: center;<br /> justify-content: center;<br /> border-radius: 6px;<br /> font-size: 9px;<br /> font-weight: 600;<br /> }<br /> .contrast-ratio {<br /> font-size: 11px;<br /> font-weight: 700;<br /> }<br /> .contrast-label {<br /> font-size: 7px;<br /> opacity: 0.8;<br /> }<br /> /* UI Examples */<br /> .ui-examples-title {<br /> font-size: 14px;<br /> font-weight: 600;<br /> color: #0f172a;<br /> margin-bottom: 12px;<br /> }<br /> .ui-grid {<br /> display: grid;<br /> grid-template-columns: repeat(4, 1fr);<br /> gap: 10px;<br /> }<br /> .ui-card {<br /> background: #fff;<br /> border-radius: 10px;<br /> overflow: hidden;<br /> border: 1px solid #e2e8f0;<br /> transition: box-shadow 0.2s;<br /> }<br /> .ui-card:hover {<br /> box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);<br /> }<br /> .ui-card-gradient {<br /> height: 70px;<br /> display: flex;<br /> align-items: flex-end;<br /> padding: 10px;<br /> position: relative;<br /> overflow: hidden;<br /> }<br /> .ui-card-gradient::before {<br /> content: '';<br /> position: absolute;<br /> inset: 0;<br /> background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);<br /> }<br /> .ui-card-text {<br /> position: relative;<br /> color: #fff;<br /> font-size: 13px;<br /> font-weight: 600;<br /> line-height: 1.2;<br /> }<br /> .stats-card {<br /> padding: 12px;<br /> }<br /> .stats-label {<br /> font-size: 11px;<br /> color: #64748b;<br /> margin-bottom: 2px;<br /> }<br /> .stats-value {<br /> font-size: 18px;<br /> font-weight: 700;<br /> color: #0f172a;<br /> margin-bottom: 6px;<br /> }<br /> .stats-chart {<br /> height: 28px;<br /> display: flex;<br /> align-items: flex-end;<br /> gap: 3px;<br /> }<br /> .chart-bar {<br /> flex: 1;<br /> border-radius: 2px 2px 0 0;<br /> transition: height 0.3s;<br /> }<br /> .chart-labels {<br /> display: flex;<br /> justify-content: space-between;<br /> margin-top: 4px;<br /> }<br /> .chart-label {<br /> font-size: 8px;<br /> color: #94a3b8;<br /> }<br /> .category-card {<br /> padding: 10px;<br /> }<br /> .category-item {<br /> display: flex;<br /> align-items: center;<br /> gap: 8px;<br /> padding: 6px 0;<br /> border-bottom: 1px solid #f1f5f9;<br /> }<br /> .category-item:last-child {<br /> border-bottom: none;<br /> }<br /> .category-icon {<br /> width: 28px;<br /> height: 28px;<br /> border-radius: 6px;<br /> display: flex;<br /> align-items: center;<br /> justify-content: center;<br /> }<br /> .category-info {<br /> flex: 1;<br /> }<br /> .category-name {<br /> font-size: 12px;<br /> font-weight: 600;<br /> color: #374151;<br /> }<br /> .category-count {<br /> font-size: 10px;<br /> color: #94a3b8;<br /> }<br /> .category-arrow {<br /> color: #cbd5e1;<br /> }<br /> .mini-stats {<br /> padding: 10px;<br /> }<br /> .mini-stat {<br /> margin-bottom: 8px;<br /> }<br /> .mini-stat:last-child {<br /> margin-bottom: 0;<br /> }<br /> .mini-stat-header {<br /> display: flex;<br /> justify-content: space-between;<br /> align-items: center;<br /> margin-bottom: 1px;<br /> }<br /> .mini-stat-label {<br /> font-size: 10px;<br /> color: #64748b;<br /> }<br /> .mini-stat-value {<br /> font-size: 14px;<br /> font-weight: 700;<br /> color: #0f172a;<br /> }<br /> .mini-stat-sub {<br /> font-size: 9px;<br /> color: #94a3b8;<br /> }<br /> .mini-chart {<br /> height: 20px;<br /> margin-top: 3px;<br /> }<br /> .mini-chart svg {<br /> width: 100%;<br /> height: 100%;<br /> }<br /> /* Toast notification */<br /> .toast {<br /> position: fixed;<br /> bottom: 20px;<br /> left: 50%;<br /> transform: translateX(-50%) translateY(100px);<br /> background: #0f172a;<br /> color: #fff;<br /> padding: 10px 20px;<br /> border-radius: 8px;<br /> font-size: 13px;<br /> opacity: 0;<br /> transition: all 0.3s ease;<br /> z-index: 1001;<br /> }<br /> .toast.show {<br /> transform: translateX(-50%) translateY(0);<br /> opacity: 1;<br /> }<br /> /* Scrollbar */<br /> .main-content::-webkit-scrollbar,<br /> .sidebar::-webkit-scrollbar,<br /> .saved-palettes::-webkit-scrollbar {<br /> width: 5px;<br /> }<br /> .main-content::-webkit-scrollbar-track,<br /> .sidebar::-webkit-scrollbar-track,<br /> .saved-palettes::-webkit-scrollbar-track {<br /> background: #f1f5f9;<br /> }<br /> .main-content::-webkit-scrollbar-thumb,<br /> .sidebar::-webkit-scrollbar-thumb,<br /> .saved-palettes::-webkit-scrollbar-thumb {<br /> background: #cbd5e1;<br /> border-radius: 3px;<br /> }<br /> .main-content::-webkit-scrollbar-thumb:hover,<br /> .sidebar::-webkit-scrollbar-thumb:hover,<br /> .saved-palettes::-webkit-scrollbar-thumb:hover {<br /> background: #94a3b8;<br /> }<br /> ol.newol {<br /> list-style:auto;<br /> padding-left: 40px;<br /> margin-bottom: 20px;<br /> }<br /> ul.newul {<br /> list-style: square;<br /> padding-left: 40px;<br /> margin-bottom: 20px;<br /> }<br /> .elementor-widget-text-editor {<br /> color: inherit !important;<br /> }<br /> </style> <!-- Sidebar --> <aside> <h1>Color Palette Generator</h1> Instantly create stunning color scales by entering a base color or hitting the spacebar. Primary HEX ⌄ ⚙ <input id="colorPicker" type="color" value="#FF20B8" /> <input id="hexInput" maxlength="7" type="text" value="#FF20B8" /> <button title="Copy color"></button> <button></button> Generate random <button></button> Add secondary color Color combination scheme · <strong>auto</strong> <!-- Saved Palettes --> Saved Palettes <button>Clear All</button> No saved palettes </aside><!-- Main Content --> <main> Palette 1 <button></button></main>Save palette Fun Green <button>Contrast grid</button> <button>Export</button> <button>Edit</button> <!-- Color swatches will be generated here --> <h3>UI Examples</h3> <!-- UI example cards will be generated here --> <!-- Export Modal --> <h3>Export Colors</h3> <button>×</button> <button data-format="css">CSS Variables</button> <button data-format="tailwind">Tailwind</button> <button data-format="scss">SCSS</button> <button data-format="rgb">RGB</button> <button data-format="hsl">HSL</button> <pre id="exportCode"></pre> <button>Close</button> <button>Copy to Clipboard</button> <!-- Contrast Grid Modal --> <h3>WCAG Contrast Grid</h3> <button>×</button> <p style="font-size: 11px; color: #64748b; margin-bottom: 12px;">Shows contrast ratios between colors. AA requires 4.5:1 for normal text, AAA requires 7:1.</p> <!-- Contrast grid will be generated here --> <button>Close</button> Color copied to clipboard!