Okay, let's give your UI a complete Notion-inspired makeover. We'll focus on Notion's signature minimalist design, soft shadows, clear typography, and subtle interactions.
Here's the revamped CSS:
css
/* Notion-inspired Base Colors & Fonts */
:root {
--notion-text: #37352F;
--notion-text-muted: #787774;
--notion-background: #F7F7F7;
--notion-card-background: #FFFFFF;
--notion-border-light: rgba(55, 53, 47, 0.09); /* Lighter border */
--notion-border-medium: rgba(55, 53, 47, 0.16); /* Standard border */
--notion-blue-accent: #0A84FF; /* Notion's vibrant blue */
--notion-blue-light-bg: rgba(10, 132, 255, 0.08); /* For highlighted text/elements */
--notion-shadow-subtle: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.12); /* Softer shadow */
--notion-radius: 3px; /* Smaller, more subtle border-radius */
--notion-focus-outline: #0A84FF; /* Outline color for focus */
--notion-error-bg: #FDE8E8; /* Softer red for errors */
--notion-error-text: #C62828;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--notion-background); /* Lighter background */
color: var(--notion-text); /* Notion primary text color */
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding-top: 40px; /* More top padding */
box-sizing: border-box;
}
#app-container {
background-color: var(--notion-card-background);
padding: 30px 40px; /* Increased padding */
border-radius: var(--notion-radius); /* Notion-style radius */
box-shadow: var(--notion-shadow-subtle); /* Softer shadow */
width: 100%;
max-width: 760px; /* Slightly wider */
margin: 20px;
box-sizing: border-box;
border: 1px solid var(--notion-border-light); /* Subtle overall border */
}
header {
text-align: center;
margin-bottom: 40px; /* More space */
border-bottom: 1px solid var(--notion-border-light); /* Lighter separator */
padding-bottom: 25px; /* More padding */
}
header h1 {
color: var(--notion-text);
margin: 0 0 12px 0;
font-size: 2.2em; /* Slightly larger heading */
font-weight: 700; /* Bolder for prominence */
}
header p {
color: var(--notion-text-muted); /* Muted description text */
font-size: 1.1em;
line-height: 1.5;
}
.input-section {
margin-bottom: 30px;
display: flex;
flex-direction: column;
}
.input-section label {
margin-bottom: 10px; /* More space */
font-weight: 600; /* Not quite bold, but substantial */
color: var(--notion-text);
font-size: 0.95em;
text-transform: uppercase; /* Notion-like labels */
letter-spacing: 0.05em;
opacity: 0.7; /* Slightly faded, typical for Notion labels */
}
#shortcut-request {
width: 100%;
padding: 14px; /* More padding */
border: 1px solid var(--notion-border-medium); /* Standard border */
border-radius: var(--notion-radius);
box-sizing: border-box;
font-size: 1em;
margin-bottom: 15px;
resize: vertical;
min-height: 100px; /* Taller textarea */
color: var(--notion-text);
background-color: var(--notion-card-background); /* Ensure background is white */
}
#shortcut-request::placeholder {
color: var(--notion-text-muted); /* Muted placeholder text */
opacity: 0.8;
}
#shortcut-request:focus {
border-color: var(--notion-blue-accent);
box-shadow: 0 0 0 1px var(--notion-focus-outline); /* Subtle blue outline */
outline: none;
}
#generate-button {
background-color: var(--notion-blue-accent); /* Notion blue button */
color: white;
border: none;
padding: 14px 24px; /* More generous padding */
border-radius: var(--notion-radius);
font-size: 1.05em;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.1s ease;
align-self: flex-start; /* Align to start, common for Notion buttons */
min-width: 150px; /* Ensure a decent size */
box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle button shadow */
}
#generate-button:hover {
background-color: #0076E0; /* Slightly darker Notion blue on hover */
box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Slightly more pronounced shadow on hover */
}
#generate-button:active {
transform: scale(0.99);
background-color: #006ACF; /* Even darker on active */
}
#generate-button:disabled {
background-color: var(--notion-border-light); /* Lighter disabled background */
color: var(--notion-text-muted); /* Muted text for disabled */
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.loading-indicator {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 30px; /* More padding */
margin-bottom: 20px;
color: var(--notion-text-muted);
font-size: 1.1em;
}
.spinner {
border: 4px solid var(--notion-border-light);
border-top: 4px solid var(--notion-blue-accent);
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin-bottom: 15px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-message {
background-color: var(--notion-error-bg);
color: var(--notion-error-text);
padding: 15px;
border-radius: var(--notion-radius);
margin-bottom: 20px;
border: 1px solid var(--notion-error-text);
text-align: center;
font-size: 0.95em;
}
.result-container {
/* Notion tends to let the individual blocks define their style,
rather than wrapping a result in an extra box. */
margin-top: 40px; /* More space after input */
padding-top: 20px; /* Add some internal padding if no explicit border/bg */
}
.result-container h2 {
margin-top: 0;
margin-bottom: 25px; /* More space */
color: var(--notion-text);
font-size: 1.8em; /* Slightly larger for a section title */
border-bottom: 1px solid var(--notion-border-light); /* Lighter border */
padding-bottom: 15px;
font-weight: 700;
}
/* Enhanced styles for structured steps - very Notion-like */
#shortcut-steps-list {
/* Notion uses system monospace for code/structured text, but not SFMono-Regular exactly */
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 0.9em; /* Slightly smaller for detailed steps */
line-height: 1.6; /* Good readability */
}
.steps-preamble {
font-style: italic;
color: var(--notion-text-muted);
margin-bottom: 25px; /* More space */
padding: 12px 15px; /* Slightly more padding */
background-color: var(--notion-blue-light-bg); /* Notion's light blue callout background */
border-radius: var(--notion-radius);
border-left: 2px solid var(--notion-blue-accent); /* Thinner, distinct left border */
font-size: 0.95em;
}
.steps-list {
list-style: none;
padding-left: 0;
margin: 0;
}
.step-item {
background-color: var(--notion-card-background);
margin-bottom: 20px; /* Increased margin */
padding: 20px; /* Increased padding */
border-radius: var(--notion-radius);
box-shadow: var(--notion-shadow-subtle); /* Softer shadow */
border: 1px solid var(--notion-border-light); /* Subtle border for each step */
display: flex;
align-items: flex-start;
position: relative;
transition: box-shadow 0.2s ease, border-color 0.2s ease; /* Smooth transition */
}
.step-item:last-child {
margin-bottom: 0;
}
.step-item:hover {
box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1); /* Slightly more prominent shadow on hover */
border-color: var(--notion-border-medium); /* Slightly darker border on hover */
}
.step-number {
background-color: var(--notion-blue-light-bg); /* Light blue circle background */
color: var(--notion-blue-accent); /* Blue number color */
min-width: 28px; /* Slightly smaller number circle */
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600; /* Substantial weight */
font-size: 0.9em;
margin-right: 18px;
flex-shrink: 0;
line-height: 28px;
box-shadow: none; /* No shadow for the number itself */
}
.step-content {
flex-grow: 1;
color: var(--notion-text);
}
.step-content strong {
color: var(--notion-blue-accent); /* Accent blue for strong text */
font-weight: 600;
background-color: var(--notion-blue-light-bg); /* Light blue background for emphasis */
padding: 2px 6px; /* More padding */
border-radius: var(--notion-radius); /* Rounded corners */
display: inline-block; /* Ensures padding/radius works correctly */
line-height: 1.2; /* Adjust line-height for inline blocks */
}
.step-details {
list-style-type: none;
padding-left: 0; /* Remove default padding for finer control */
margin-top: 15px; /* More margin */
font-size: 0.88em; /* Slightly smaller detail text */
color: var(--notion-text-muted);
border-left: 1px dotted var(--notion-border-light); /* Subtle dotted line */
margin-left: 14px; /* Align with content, but indented further */
padding-left: 10px; /* Padding for the dotted line */
}
.step-detail-item {
margin-bottom: 10px; /* More margin */
padding-left: 20px;
position: relative;
}
.step-detail-item::before {
content: "•"; /* Subtle dot for details, Notion-like */
color: var(--notion-text-muted); /* Muted color for the dot */
position: absolute;
left: 0;
top: 0;
font-size: 1.1em;
}
footer {
text-align: center;
margin-top: 40px; /* More space */
padding-top: 20px;
border-top: 1px solid var(--notion-border-light); /* Lighter border */
font-size: 0.85em;
color: var(--notion-text-muted); /* Muted footer text */
}
/* Responsive adjustments */
@media (max-width: 768px) {
#app-container {
margin: 15px;
padding: 25px 30px;
max-width: 95%; /* Adjust max-width for smaller screens */
}
header h1 {
font-size: 2em;
}
header p {
font-size: 1em;
}
#generate-button {
width: 100%;
padding: 14px 20px;
min-width: auto;
}
.result-container h2 {
font-size: 1.6em;
}
.step-item {
padding: 15px;
}
.step-number {
min-width: 24px;
height: 24px;
font-size: 0.85em;
margin-right: 15px;
line-height: 24px;
}
.step-content strong {
padding: 2px 5px;
}
.step-details {
margin-left: 10px;
}
.step-detail-item {
padding-left: 18px;
}
.step-detail-item::before {
font-size: 1em;
}
}
@media (max-width: 480px) {
body {
padding-top: 20px;
}
#app-container {
margin: 10px;
padding: 20px 20px;
}
header {
margin-bottom: 30px;
padding-bottom: 15px;
}
header h1 {
font-size: 1.7em;
}
header p {
font-size: 0.95em;
}
.input-section label {
font-size: 0.85em;
}
#shortcut-request {
min-height: 90px;
font-size: 0.95em;
}
#generate-button {
font-size: 1em;
padding: 12px 18px;
}
.loading-indicator {
padding: 20px;
}
.result-container h2 {
font-size: 1.3em;
margin-bottom: 20px;
padding-bottom: 10px;
}
.step-item {
padding: 12px;
margin-bottom: 15px;
}
.step-number {
min-width: 22px;
height: 22px;
font-size: 0.8em;
margin-right: 10px;
line-height: 22px;
}
.step-details {
font-size: 0.85em;
margin-left: 8px;
padding-left: 8px;
}
.step-detail-item {
padding-left: 16px;
}
}
Key Notion UI Changes Implemented:
Color Palette and Variables: Defined Notion-specific colors using CSS variables for consistency and easy modification.
Softer background (#F7F7F7).
Notion's distinct dark text (#37352F) and muted text (#787774).
Notion's vibrant blue accent (#0A84FF) and its lighter background variant.
Subtler border colors.
Typography:
Labels are font-weight: 600, uppercase, with slight letter-spacing and opacity for that signature Notion label look.
Headings are slightly larger and bolder.
#shortcut-steps-list uses system monospace for a "code block" feel where appropriate.
Spacing & Padding: Increased overall padding and margins to create more "breathing room" and emphasis on whitespace.
Border Radius: Changed most border-radius values to a smaller 3px to 5px to match Notion's subtle rounded corners, rather than the larger 8px or 12px.
Shadows: Replaced heavy box-shadow with much softer, multi-layered shadows (var(--notion-shadow-subtle)) for a more refined, Notion-like depth.
Input Fields (#shortcut-request):
Thicker padding.
Notion's standard border (var(--notion-border-medium)).
Subtler ::placeholder color.
Notion's blue outline on focus, with a very subtle 1px box-shadow instead of a strong glow.
Buttons (#generate-button):
Uses Notion's blue accent color (#0A84FF).
Smaller border-radius.
More subtle box-shadow on hover.
Notion-like disabled state.
Result Container & Steps:
Removed the outer border/background from .result-container to let the individual .step-item blocks define their own appearance, which is more typical for Notion's content layout.
.steps-preamble: Uses Notion's light blue background and a thinner left border for a "callout" style.
.step-item: Each step is now a distinct card with a subtle border and soft shadow, consistent with Notion's block-based UI. Hover effects added for interactivity.
.step-number: Uses the light blue background with the blue text, resembling Notion's icon/number styling.
strong text within steps uses the light blue background for highlight.
.step-details: Uses a 1px dotted light border and a softer dot (•) for sub-items, mimicking Notion's structured lists and toggles.
Footer: Lighter border and muted text color.
This CSS revamp should give your UI a significantly cleaner, more modern, and Notion-esque aesthetic!