Flexbox Froggy Simulator - Online Learn CSS Flexbox Game
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
UD5 Toolkit
src/components/MyComponent/__tests__/MyComponent.test.jsx
jest.mock('../api'). For fetch specifically, you can mock global.fetch with jest.fn() and control its resolved values. MSW is increasingly popular as it intercepts requests at the network level, giving you more realistic testing conditions without mocking implementation details.
getByRole, getByLabelText, getByText over getByTestId.screen instead of destructuring render's return value.userEvent over fireEvent for realistic interactions.initialEntries prop. To test navigation, use userEvent.click() on links and then assert that the expected content appears. For testing route changes, you can check that window.location.pathname has changed or assert that components rendered at the target route are now visible.
toBeInTheDocument(), toHaveTextContent(), toBeDisabled(), toBeVisible(), and many more. These custom matchers make test assertions more readable and expressive. It's typically imported once in a setup file (like jest.setup.js) so the matchers are available in all test files without explicit imports.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
Preview any website inside emulated device viewports (iPhone, iPad, various resolutions). No screenshot, live interaction in an iframe. Local tool.
Experiment with CSS container queries. Resize a container and see the styles change according to its size, not the viewport. Learn the new spec.
Build the same layout with both Grid and Flexbox side by side. See the code differences and visual results.
Dynamically blend two colors using the CSS colorâmix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Set a custom accent color for checkboxes, radios, range, and progress. See the browserâs rendering. Copy the CSS.
Enter a palette of colors and see a grid showing whether each foreground/background pair passes AA or AAA contrast. Must for designers.
Virtually fold a digital paper and cut out shapes to see a snowflake unfold. Experiment with designs before real scissors. Pure creative fun.
Use the lightâdark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Add grid items beyond defined tracks and see how implicit rows/columns expand. Set sizes interactively. Master the grid.
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.
Enter a URL and drag a slider to change the viewport width smoothly. See exactly where your layout breaks. No iframe limits.
Generate single random colors or full palettes. Displays hex, RGB, and copy on click. Great for design inspiration.
Create a pure HTML/CSS accordion using <details> elements. Add custom styling and get the clean code. No JavaScript required.
Match gap size around doors/windows to the correct type of weather stripping (foam, V-strip, door sweep). Save energy.
Scramble letters of any word or sentence to create anagrams. Great for brain teasers and vocabulary games. Simple, fun, and client-side.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Pick a color in the DisplayâP3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Style an `<input type='range'>` with custom track and thumb. Crossâbrowser CSS. Preview and copy the code.
Enter a list of names and spin a wheel to pick a random winner. Remove picked names to avoid duplicates. Perfect for classrooms or contests.
Type a word like 'sunset' or 'calm' and generate a color palette inspired by that mood. Simple associative mapping.
Test the upcoming contrastâcolor() CSS function. Get white or black automatically for a given background. See it live.
Pick a base color and generate a full palette of 10 shades (50 to 900) like Tailwind CSS. Copy as hex or hsl.
Randomly show a Q-code and select correct meaning. Learn while having fun. For your license exam.
Fetch a website's CSS and extract :root custom properties (ââcolor) to reveal its design token palette. For learning and inspiration.