About
A compact rounded calendar with oversized month typography. Today has an accent circle; hovered and selected dates use mint circles. Browse months with arrows, return to today using the month label, and select dates with mouse or keyboard. Includes cream and dark styles and a responsive demo.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Editorial Calendar to your project and fits it to your theme.
Code
How Editorial Calendar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from 'react';
import EditorialCalendar from '@/components/ui/editorial-calendar';
export default function CalendarDemo(){
const [theme,setTheme]=React.useState<'cream'|'dark'>('cream');
const stage=React.useRef<HTMLElement>(null),content=React.useRef<HTMLDivElement>(null);
const [scale,setScale]=React.useState(1);
React.useEffect(()=>{const outer=stage.current,inner=content.current;if(!outer||!inner)return;const fit=()=>setScale(Math.min((outer.clientWidth-32)/440,(outer.clientHeight-94)/inner.offsetHeight,1));const observer=new ResizeObserver(fit);observer.observe(outer);observer.observe(inner);fit();return()=>observer.disconnect();},[]);
return <main ref={stage} style={{position:'fixed',inset:0,overflow:'hidden',display:'grid',gridTemplateRows:'minmax(0,1fr)',gridTemplateColumns:'minmax(0,1fr)',placeItems:'center',boxSizing:'border-box',paddingBottom:42,background:theme==='cream'?'#242120':'#fffaf4',fontFamily:'Arial, sans-serif'}}>
<div ref={content} style={{width:440,transform:`scale(${scale})`,transformOrigin:'center'}}><EditorialCalendar theme={theme}/></div>
<div role="group" aria-label="Calendar appearance" style={{position:'absolute',bottom:16,display:'flex',gap:4,padding:4,borderRadius:30,background:theme==='cream'?'#ffffff20':'#24212012'}}>{(['cream','dark'] as const).map(item=><button type="button" key={item} aria-pressed={theme===item} onClick={()=>setTheme(item)} style={{border:0,borderRadius:24,padding:'10px 19px',minHeight:36,fontSize:11,cursor:'pointer',background:theme===item?(item==='cream'?'#fffaf4':'#242120'):'transparent',color:theme===item?(item==='cream'?'#242120':'#f4f1e8'):(theme==='cream'?'#f4f1e8':'#242120')}}>{item==='cream'?'Cream':'After dark'}</button>)}</div>
</main>;
}

