Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Web and App implementation guide for Duotone Design. Trigger when user wants two-color schemes, striking imagery, and Spotify-like playlist aesthetics.
.claude/skills/lingxling-duotone-design/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 106% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 47% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 12% | 0% |
> "Striking contrast. Photography and UI stripped down to exactly two clashing or complementary colors."
Use this sub-style when the user's request matches the aesthetic described above. This is a child reference of the design-it skill and is not meant to be triggered directly.
League Gothic, Oswald).mix-blend-mode and filters.css:root { --duo-dark: #1E0045; /* Deep Purple */ --duo-light: #CCFF00; /* Neon Lime */ } body { background-color: var(--duo-dark); color: var(--duo-light); } /* CSS Duotone Image Effect */ .duotone-container { position: relative; width: 100%; height: 400px; background-color: var(--duo-light); /* Base color */ } .duotone-container img { width: 100%; height: 100%; object-fit: cover; /* Convert image to grayscale, increase contrast */ filter: grayscale(100%) contrast(1.5); /* Multiply the grayscale image against the light background */ mix-blend-mode: multiply; } .duotone-container::after { /* Overlay the dark color using screen/lighten */ content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--duo-dark); mix-blend-mode: screen; } .duotone-btn { background: var(--duo-light); color: var(--duo-dark); border: none; font-weight: 900; text-transform: uppercase; padding: 16px 32px; }
swiftstruct DuotoneImage: View { let duoDark = Color(red: 0.12, green: 0.0, blue: 0.27) // #1E0045 let duoLight = Color(red: 0.8, green: 1.0, blue: 0.0) // #CCFF00 var body: some View { ZStack { // Background base color duoLight.ignoresSafeArea() // Image processing Image("sample_photo") .resizable() .scaledToFill() .grayscale(1.0) .contrast(1.5) .colorMultiply(duoLight) // Multiplies the light color into the grays // Dark color overlay duoDark .blendMode(.screen) // Equivalent to CSS screen blend mode .allowsHitTesting(false) } .frame(height: 400) .clipped() } }
.grayscale(), boost .contrast(), then use .colorMultiply() and .blendMode(.screen) layers to map the two colors exactly like CSS mix-blend-mode.dartclass DuotoneImage extends StatelessWidget { final Color duoDark = const Color(0xFF1E0045); final Color duoLight = const Color(0xFFCCFF00); @override Widget build(BuildContext context) { return Container( height: 400, width: double.infinity, color: duoLight, child: Stack( fit: StackFit.expand, children: [ // 1. Grayscale & Contrast (using ColorFilter matrix) // 2. Light Color Multiply ColorFiltered( colorFilter: ColorFilter.mode(duoLight, BlendMode.multiply), child: ColorFiltered( // Simple grayscale matrix colorFilter: const ColorFilter.matrix([ 0.2126, 0.7152, 0.0722, 0, 0, 0.2126, 0.7152, 0.0722, 0, 0, 0.2126, 0.7152, 0.0722, 0, 0, 0, 0, 0, 1, 0, ]), child: Image.asset('assets/sample_photo.jpg', fit: BoxFit.cover), ), ), // 3. Dark Color Screen Overlay ColorFiltered( colorFilter: ColorFilter.mode(duoDark, BlendMode.screen), child: Container(color: Colors.transparent), // Applies filter to stack below ), ], ), ); } }
ColorFiltered widgets.ColorFilter.matrix to convert the image to grayscale first.BlendMode.multiply with the light color, then overlay the dark color using BlendMode.screen.jsx// Real-time CSS-like blend modes do NOT exist natively in React Native. // You must use react-native-skia or pre-process images. import { Canvas, Image, useImage, ColorMatrix } from "@shopify/react-native-skia"; const DuotoneImage = () => { const image = useImage(require('./sample_photo.jpg')); if (!image) return null; // Skia allows custom SVG/CSS style color matrices. // Building a true duotone matrix requires math mapping black to duoDark // and white to duoLight. return ( <View style={{ height: 400, backgroundColor: '#CCFF00' }}> <Canvas style={{ flex: 1 }}> <Image image={image} x={0} y={0} width={400} height={400} fit="cover"> {/* Note: In production, you would construct a specific ColorMatrix to map the luminance to the two hex colors. */} <ColorMatrix matrix={[ -1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0, ]} /> </Image> </Canvas> </View> ); };
<Image> cannot do duotone blending.@shopify/react-native-skia to apply low-level color matrices and blend modes.kotlin@Composable fun DuotoneImage() { val duoDark = Color(0xFF1E0045) val duoLight = Color(0xFFCCFF00) // A ColorMatrix to map luminance to the two colors is required for true duotone. // For simplicity, we use BlendModes here to approximate the CSS multiply/screen effect. Box(modifier = Modifier .fillMaxWidth() .height(400.dp) .background(duoLight) ) { Image( painter = painterResource(id = R.drawable.sample_photo), contentDescription = null, contentScale = ContentScale.Crop, modifier = Modifier.matchParentSize(), colorFilter = ColorFilter.colorMatrix(ColorMatrix().apply { setToSaturation(0f) // Grayscale }) ) // Multiply light color Spacer(modifier = Modifier .matchParentSize() .background(duoLight) .graphicsLayer { blendMode = BlendMode.Multiply } ) // Screen dark color Spacer(modifier = Modifier .matchParentSize() .background(duoDark) .graphicsLayer { blendMode = BlendMode.Screen } ) } }
ColorFilter.colorMatrix with setToSaturation(0f) to make the image grayscale.Spacer overlays with Modifier.graphicsLayer { blendMode = BlendMode... } to apply the dual color mapping.Multiply (light) and Screen (dark) to achieve the effect.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-21 | fail→fail | 53,080 | 15,928 | -70% | 1 | 1 | 0% | 3,164 | 4,801 | +52% | 0 | 0 | — |
case-01 | fail→pass | 41,962 | 23,700 | -44% | 1 | 1 | 0% | 8,067 | 6,842 | -15% | 0 | 0 | — |
case-02 | fail→pass | 21,712 | 26,018 | +20% | 1 | 1 | 0% | 3,017 | 6,209 | +106% | 0 | 0 | — |
case-03 | fail→pass | 31,801 | 28,184 | -11% | 1 | 1 | 0% | 6,117 | 6,816 | +11% | 0 | 0 | — |
case-04 | pass→fail | 19,944 | 19,996 | +0% | 1 | 1 | 0% | 3,465 | 6,050 | +75% | 0 | 0 | — |
case-05 | pass→pass | 21,646 | 26,838 | +24% | 1 | 1 | 0% | 3,539 | 6,364 | +80% | 0 | 0 | — |
case-06 | pass→pass | 30,064 | 20,091 | -33% | 1 | 1 | 0% | 4,994 | 6,209 | +24% | 0 | 0 | — |
case-07 | fail→fail | 33,320 | 24,114 | -28% | 1 | 1 | 0% | 3,565 | 6,042 | +69% | 0 | 0 | — |
case-08 | fail→fail | 24,892 | 31,180 | +25% | 1 | 1 | 0% | 4,938 | 9,009 | +82% | 0 | 0 | — |
case-09 | pass→pass | 15,014 | 11,555 | -23% | 1 | 1 | 0% | 2,381 | 4,050 | +70% | 0 | 0 | — |
case-10 | fail→fail | 15,228 | 20,927 | +37% | 1 | 1 | 0% | 3,133 | 5,911 | +89% | 0 | 0 | — |
case-11 | fail→pass | 18,327 | 11,610 | -37% | 1 | 1 | 0% | 2,738 | 4,031 | +47% | 0 | 0 | — |
case-12 | fail→pass | 21,765 | 8,328 | -62% | 1 | 1 | 0% | 3,236 | 3,628 | +12% | 0 | 0 | — |
case-13 | fail→fail | 24,736 | 15,886 | -36% | 1 | 1 | 0% | 4,473 | 4,822 | +8% | 0 | 0 | — |
case-14 | fail→pass | 12,522 | 3,206 | -74% | 1 | 1 | 0% | 1,769 | 2,822 | +60% | 0 | 0 | — |
case-15 | pass→pass | 12,545 | 8,847 | -29% | 1 | 1 | 0% | 1,968 | 3,714 | +89% | 0 | 0 | — |
case-22 | fail→pass | 13,069 | 16,691 | +28% | 1 | 1 | 0% | 2,503 | 4,982 | +99% | 0 | 0 | — |
case-16 | pass→pass | 5,622 | 4,921 | -12% | 1 | 1 | 0% | 814 | 2,870 | +253% | 0 | 0 | — |
case-17 | fail→fail | 17,778 | 15,762 | -11% | 1 | 1 | 0% | 2,746 | 4,931 | +80% | 0 | 0 | — |
case-18 | pass→pass | 7,456 | 7,422 | -0% | 1 | 1 | 0% | 1,143 | 3,297 | +188% | 0 | 0 | — |
case-19 | pass→pass | 9,649 | 9,279 | -4% | 1 | 1 | 0% | 1,475 | 3,898 | +164% | 0 | 0 | — |
case-20 | pass→pass | 7,417 | 6,524 | -12% | 1 | 1 | 0% | 1,090 | 3,170 | +191% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.