topskill.dev
CoursesTracks
0
All courses/CSSColor Palette
Visual Style
2 / 9
← CSS
○CSS Rule Style an Exhibit Card○Write Your First CSS Rule○CSS Selectors Target Exhibit Details○Target Exhibit Details○Apply CSS Three Sources○Apply CSS Three Ways○Specificity Resolve a Style Conflict○Resolve Specificity○Inheritance and the cascade✦Module Quiz
○Color Palette●Color Palette○Background Layer○Background Layer○Type Rhythm○Type Rhythm○Borders and Shadows○Borders and Shadows✦Module Quiz
○Box Model Seed Packet Card○Space a Seed Packet○Display Swap Table Labels○Arrange Swap Table Labels○Positioning Pickup Pin○Pin the Pickup Location○Sizing and Overflow○Size a Seed-Swap Notice○Sticky scroll headings✦Module Quiz
○Advanced Selectors Book Cart Sign○Target a Book Cart Sign○Pseudo-Classes Night Cart States○Style Night Cart States○Pseudo-Elements○Add a Book-Quote Mark✦Module Quiz
○Lantern Market navigation○Lantern Market navigation✦Module Quiz
○Community garden request card○Community garden request card✦Module Quiz
○Flex Direction○Flex Direction○Main-Axis Spacing○Main-Axis Spacing○Cross-Axis Alignment○Cross-Axis Alignment○Wrapping and Flex Items○Wrapping and Flex Items○Flexbox Navigation○Flexbox Navigation✦Module Quiz
○Grid Tracks○Grid Tracks○Grid Gaps○Grid Gaps○Grid Placement○Grid Placement○Responsive Grid○Responsive Grid✦Module Quiz
○River radio schedule○Harbor radio schedule✦Module Quiz
○Field note color system○Field note color system○Transforms○Rotate a Field Note○Resilient styles✦Module Quiz
○Kite festival signal○Garden festival signal✦Module Quiz
○Garden forecast○Harbor forecast○Fluid sizing○Fluid weather bulletin○Images that fit✦Module Quiz
○Seed inventory table○Tool checkout table✦Module Quiz
○Community maker profile○Maker profile sheet✦Module Quiz

Color Palette

Color the market ticket

The flyer demo used different colors for surfaces and text. Apply that distinction to this smaller Lantern Lane ticket. Its layout and supporting text are supplied; edit the color rules in style.css.

Use background-color for the ticket and badge surfaces. Use color for the heading and badge lettering. Changing a surface does not automatically choose readable text for it.

Your Task

  1. Set .ticket to a #172554 background color.
  2. Set the h1 text color to #fff7ed.
  3. Set .entry to a #fb7185 background color.
  4. Set .entry text color to #172554.

Check the contrast

Run after each change, then Submit. The finished ticket should have a navy panel, cream heading, and coral badge with navy lettering. The supplied supporting text should remain readable too; recoloring it is not an extra task.

Hint 1
1 / 2
HINT 1

Use background-color for the ticket surface and color for text.

HINT 2

Keep each declaration inside the selector named in the task.

Files
  • ⋄index.html
  • ⋄style.css
Loading editor…